Click or drag to resize

IJamShellColumnCollection Interface

Interface representing a ColumnCollection. This interface is returned by Columns

Namespace: Jam.Shell
Assembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntax
public interface IJamShellColumnCollection : ICollection, 
	IEnumerable

The IJamShellColumnCollection type exposes the following members.

Properties
 NameDescription
Public propertyItemInt32 Gets the JamShellColumnHeader at the specified index.
Public propertyCode exampleItemSHCOLUMNID Gets the JamShellColumnHeader identified by the passed SHCOLUMNID
Top
Methods
 NameDescription
Public methodAdd(ColumnHeader) Adds the specified ColumnHeader to the collection. Please use Add(JamShellColumnHeader) instead.
Obsolete
Public methodCode exampleAdd(JamShellColumnHeader) Adds the specified JamShellColumnHeader to the collection.
Public methodCode exampleAdd(SHCOLUMNID) Adds the shell column identified by the passed SHCOLUMNID.
Public methodCode exampleClear Clears this instance.
Public methodCode exampleGetColumnByShellIndex Gets the JamShellColumnHeader identified by the passed shell index.
Public methodInsert Inserts the shell column identified by the passed SHCOLUMNID at the passed position.
Public methodRemove(JamShellColumnHeader) Removes the specified ColumnHeader from the collection.
Public methodRemove(SHCOLUMNID) Removes the shell column identified by the passed SHCOLUMNID.
Public methodCode exampleShow Shows the shell column identified by the passed SHCOLUMNID at its default shell position.
Top
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