Click or drag to resize

ShellViewColumnsSetColumns Method

Replaces the currently shown columns by the columns passed.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.3.1
Syntax
public bool SetColumns(
	IList<SHCOLUMNID> pShellColumnIds
)

Parameters

pShellColumnIds
Type: System.Collections.GenericIListSHCOLUMNID
A list of SHCOLUMNIDs that serve as identifier of the columns.

Return Value

Type: Boolean
true if the operation succeeded, false otherwise
Remarks
If more columns should be added at once, this method is far more performant than adding single columns with Add(SHCOLUMNID), Show(SHCOLUMNID) or Insert(Int32, SHCOLUMNID)
Examples
C#
//if you want to define the total set of columns at once, this version is much more performant than adding each column seperately.
explorerBrowser1.Columns.SetColumns(new List<SHCOLUMNID>()
{
    SHCOLUMNID.ShellColumnName,
    SHCOLUMNID.ShellColumnSize,
    SHCOLUMNID.ShellColumnElementType
});
See Also