Click or drag to resize

IJamShellColumnCollectionGetColumnByShellIndex Method

Gets the JamShellColumnHeader identified by the passed shell index.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
JamShellColumnHeader GetColumnByShellIndex(
	int pShellIndex
)

Parameters

pShellIndex
Type: SystemInt32
The shell index of the column.

Return Value

Type: JamShellColumnHeader
The JamShellColumnHeader with the specified shell index.
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