Click or drag to resize

IJamShellColumnCollectionItem Property (SHCOLUMNID)

Gets the JamShellColumnHeader identified by the passed SHCOLUMNID

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

Parameters

pShellColumnId
Type: Jam.ShellSHCOLUMNID
A SHCOLUMNID identifying the shell column.

Property Value

Type: JamShellColumnHeader
The JamShellColumnHeader.

Return Value

Type: JamShellColumnHeader
The JamShellColumnHeader with the specified SHCOLUMNID. Null if the SHCOLUMNId does not exist.
Examples
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