C# Class DSShared.Lists.CustomListColumnCollection

Class that manages a collection of CustomListColumn objects in a CustomList control
Inheritance: System.Collections.IEnumerable
Show file Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Private Properties

Property Type Description
colLeftChanged void
colWidthChanged void

Public Methods

Method Description
Add ( CustomListColumn column ) : void

Adds the specified column to the collection

CustomListColumnCollection ( ) : System

Initializes a new instance of the T:CustomListColumnCollection class.

GetColumn ( string name ) : CustomListColumn

Gets the column with the specified name

GetEnumerator ( ) : System.Collections.IEnumerator

Returns an enumerator that iterates through a collection.

MouseDown ( MouseEventArgs e ) : void

The parent calls this when the mouse button is pressed

MouseMove ( MouseEventArgs e ) : void

The parent calls this when the mouse is moved

MouseUp ( MouseEventArgs e ) : void

The parent calls this when the mouse button is released

Render ( PaintEventArgs e, int rowHeight, int yOffset ) : void

Renders this control to the supplied PaintEventArgs

this ( int idx ) : CustomListColumn

Gets or sets the T:CustomListColumn with the specified idx.

Private Methods

Method Description
colLeftChanged ( CustomListColumn col, int amount ) : void
colWidthChanged ( CustomListColumn col, int amount ) : void

Method Details

Add() public method

Adds the specified column to the collection
public Add ( CustomListColumn column ) : void
column CustomListColumn The column.
return void

CustomListColumnCollection() public method

Initializes a new instance of the T:CustomListColumnCollection class.
public CustomListColumnCollection ( ) : System
return System

GetColumn() public method

Gets the column with the specified name
public GetColumn ( string name ) : CustomListColumn
name string The name.
return CustomListColumn

GetEnumerator() public method

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : System.Collections.IEnumerator
return System.Collections.IEnumerator

MouseDown() public method

The parent calls this when the mouse button is pressed
public MouseDown ( MouseEventArgs e ) : void
e MouseEventArgs The instance containing the event data.
return void

MouseMove() public method

The parent calls this when the mouse is moved
public MouseMove ( MouseEventArgs e ) : void
e MouseEventArgs The instance containing the event data.
return void

MouseUp() public method

The parent calls this when the mouse button is released
public MouseUp ( MouseEventArgs e ) : void
e MouseEventArgs The instance containing the event data.
return void

Render() public method

Renders this control to the supplied PaintEventArgs
public Render ( PaintEventArgs e, int rowHeight, int yOffset ) : void
e PaintEventArgs The instance containing the event data.
rowHeight int Height of the row.
yOffset int The y offset.
return void

this() public method

Gets or sets the T:CustomListColumn with the specified idx.
public this ( int idx ) : CustomListColumn
idx int
return CustomListColumn