Click or drag to resize

IJamShellColumnCollectionAdd Method (SHCOLUMNID)

Adds the shell column identified by the passed SHCOLUMNID.

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax
JamShellColumnHeader Add(
	SHCOLUMNID pShellColumnId
)

Parameters

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

Return Value

Type: JamShellColumnHeader
The JamShellColumnHeader that was added.
Examples
This example re-initializes the columns displayed for MyMusic in the CreatedColumns event.
C#
private void ShellListView1_CreatedColumns(object sender, EventArgs e)
{
    if (shellListView1.SpecialFolder == ShellFolder.MyMusic)
    {
        shellListView1.BeginUpdate();
        shellListView1.Columns.Clear(); //name column it will be reinserted again automatically.
        shellListView1.Columns.Show(SHCOLUMNID.ShellColumnSummaryTitle);
        //displays the column at the default position.
        shellListView1.Columns.Show(SHCOLUMNID.ShellColumnMusicAlbum);
        shellListView1.Columns.Show(SHCOLUMNID.ShellColumnMusicArtist);
        shellListView1.Columns.Add(SHCOLUMNID.ShellColumnMusicGenre); //adds the column at the end.

        shellListView1.EndUpdate();
    }
}
See Also