C# Class GroupedListControl.ListGroup.ListGroupColumnCollection

Inner class defined for ListGroup to contain ColumnHeaders. Derived from ListView.ColumnHeaderCollection and modified to source events indicating column addition and removal.
Inheritance: System.Windows.Forms.ListView.ColumnHeaderCollection
Mostra file Open project: TypecastException/GroupedListControl-Published

Public Methods

Method Description
Add ( string text ) : ColumnHeader

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.

Add ( string text, int width ) : ColumnHeader

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.

Add ( string text, int width, HorizontalAlignment textAlign ) : ColumnHeader

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.

Add ( string key, string text ) : ColumnHeader

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.

Add ( string key, string text, int width ) : ColumnHeader

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.

Add ( string key, string text, int width, HorizontalAlignment textAlign, int imageIndex ) : ColumnHeader

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.

Add ( string key, string text, int width, HorizontalAlignment textAlign, string imageKey ) : ColumnHeader

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.

Add ( ColumnHeader value ) : int

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.

AddRange ( ColumnHeader values ) : void

Adds a range of columns to the current collection and raises the OnColumnAdded Event on the parent control.

Clear ( ) : void
ListGroupColumnCollection ( ListGroup Owner ) : System
Remove ( ColumnHeader column ) : void

Removes a column from the current collection and raises the OnColumnRemoved Event on the parent control.

RemoveAt ( int index ) : void

Removes a column from the current collection and raises the OnColumnRemoved Event on the parent control.

RemoveByKey ( string key ) : void

Removes a column from the current collection and raises the OnColumnRemoved Event on the parent control.

Method Details

Add() public method

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.
public Add ( string text ) : ColumnHeader
text string
return System.Windows.Forms.ColumnHeader

Add() public method

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.
public Add ( string text, int width ) : ColumnHeader
text string
width int
return System.Windows.Forms.ColumnHeader

Add() public method

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.
public Add ( string text, int width, HorizontalAlignment textAlign ) : ColumnHeader
text string
width int
textAlign HorizontalAlignment
return System.Windows.Forms.ColumnHeader

Add() public method

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.
public Add ( string key, string text ) : ColumnHeader
key string
text string
return System.Windows.Forms.ColumnHeader

Add() public method

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.
public Add ( string key, string text, int width ) : ColumnHeader
key string
text string
width int
return System.Windows.Forms.ColumnHeader

Add() public method

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.
public Add ( string key, string text, int width, HorizontalAlignment textAlign, int imageIndex ) : ColumnHeader
key string
text string
width int
textAlign HorizontalAlignment
imageIndex int
return System.Windows.Forms.ColumnHeader

Add() public method

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.
public Add ( string key, string text, int width, HorizontalAlignment textAlign, string imageKey ) : ColumnHeader
key string
text string
width int
textAlign HorizontalAlignment
imageKey string
return System.Windows.Forms.ColumnHeader

Add() public method

Adds a column to the current collection and raises the OnColumnAddedEvent on the parent control.
public Add ( ColumnHeader value ) : int
value System.Windows.Forms.ColumnHeader
return int

AddRange() public method

Adds a range of columns to the current collection and raises the OnColumnAdded Event on the parent control.
public AddRange ( ColumnHeader values ) : void
values System.Windows.Forms.ColumnHeader
return void

Clear() public method

public Clear ( ) : void
return void

ListGroupColumnCollection() public method

public ListGroupColumnCollection ( ListGroup Owner ) : System
Owner ListGroup
return System

Remove() public method

Removes a column from the current collection and raises the OnColumnRemoved Event on the parent control.
public Remove ( ColumnHeader column ) : void
column System.Windows.Forms.ColumnHeader
return void

RemoveAt() public method

Removes a column from the current collection and raises the OnColumnRemoved Event on the parent control.
public RemoveAt ( int index ) : void
index int
return void

RemoveByKey() public method

Removes a column from the current collection and raises the OnColumnRemoved Event on the parent control.
public RemoveByKey ( string key ) : void
key string
return void