Click or drag to resize

JamBaseShellListViewSetColumnVisibility Method (Int32, Boolean)

Sets the visibility of a column.

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


Type: SystemInt32
The shell column index. Note: Deleting column 0 is not allowed.
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.
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