Click or drag to resize

IJamShellColumnCollectionAdd(SHCOLUMNID) Method

Adds the shell column identified by the passed SHCOLUMNID.

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

Parameters

pShellColumnId  SHCOLUMNID
A SHCOLUMNID identifying the shell column to be added.

Return Value

JamShellColumnHeader
The JamShellColumnHeader that was added.
Example
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