Click or drag to resize

JamBaseShellListViewSetColumnVisibility Method (Int32, Boolean)

Sets the visibility of a column.

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax
public int SetColumnVisibility(
	int p_ColIndex,
	bool visible
)

Parameters

p_ColIndex
Type: SystemInt32
The shell column index. Note: Deleting column 0 is not allowed.
visible
Type: SystemBoolean
True to show the column, false to hide.

Return Value

Type: Int32
0 or more: the index of the added column. -1: the column was successfully removed. -2: the 'name' column should be removed but thats not allowed. -3: the column index was not supported by the current folder.
Remarks
If you don't know the shell column index, you may find it using the function GetColumnText(Int32, Boolean). Just loop over the possible 255 columns and compare the returned column title with your wanted column title. Note that the column title depends on your system language.
See Also