Click or drag to resize

IJamShellColumnCollectionItem(SHCOLUMNID) Property

Gets the JamShellColumnHeader identified by the passed SHCOLUMNID

Namespace: Jam.Shell
Assembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntax
JamShellColumnHeader this[
	SHCOLUMNID pShellColumnId
] { get; }

Parameters

pShellColumnId  SHCOLUMNID
A SHCOLUMNID identifying the shell column.

Property Value

JamShellColumnHeader
The JamShellColumnHeader.

Return Value

JamShellColumnHeader
The JamShellColumnHeader with the specified SHCOLUMNID. Null if the SHCOLUMNId does not exist.
Example
C#
//iterating all columns
foreach (JamShellColumnHeader lHeader in shellListView1.Columns)
{

}
//checking if a shellListView contains the "Attributes" column.
if (shellListView1.Columns[SHCOLUMNID.ShellColumnAttributes] != null)
{
}

//checking if the shellListView contains the "Name" column (usually the one with ShellIndex = 0)
if (shellListView1.Columns.GetColumnByShellIndex(0) == null)
{
}
See Also