JamBaseShellListViewSetColumnVisibility Method (Int32, Boolean)
Sets the visibility of a column.
ShellBrowser (in ShellBrowser.dll) Version: 6.1
public int SetColumnVisibility(
Public Function SetColumnVisibility (
p_ColIndex As Integer,
visible As Boolean
) As Integer
member SetColumnVisibility :
p_ColIndex : int *
visible : bool -> int
- Type: SystemInt32
The shell column index. Note: Deleting column 0 is not allowed.
- Type: SystemBoolean
True to show the column, false to hide.
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.