Click or drag to resize

ShellSystemListColumns Property

Gets the ShellViewColumns the control currently displays. Not supported on Windows XP.

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 6.3.1
Syntax
public ShellViewColumns Columns { get; }

Property Value

Type: ShellViewColumns
An ShellViewColumns collection containing the visible columns.
Examples
The following examples control the columns displayed in the ShellSystemList.
C#
explorerBrowser1.Columns.Clear();
explorerBrowser1.Columns.Add(SHCOLUMNID.ShellColumnName);
explorerBrowser1.Columns.Add(SHCOLUMNID.ShellColumnSize);
explorerBrowser1.Columns.Add(SHCOLUMNID.ShellColumnParentFolder);
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
});
C#
if (IsMyMusic())
{
    //"Show" shows the column at its default position, but you can determine the position by using "Insert" or "Add"
    explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnMusicTitlenumber);
    explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnSummaryTitle);
    explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnMusicArtist);
    explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnMusicAlbum);
    explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnMusicYear);
    explorerBrowser1.Columns[explorerBrowser1.Columns.Count - 1].Caption = "Custom title";
}
C#
explorerBrowser1.Columns.Remove(SHCOLUMNID.ShellColumnSize); //Removes the Size column. If it doesn't exist it is skipped.
See Also