C# Class DSShared.Lists.CustomList

A custom list view control allowing you to specify a list of columns that retrieve their row information via reflection
Inheritance: System.Windows.Forms.Control
Afficher le fichier Open project: pmprog/OpenXCOM.Tools

Protected Properties

Свойство Type Description
clicked ObjRow
selected ObjRow

Private Properties

Свойство Type Description
loading void
mouseOverRows void
rowClicked void
saving void
scroll void

Méthodes publiques

Méthode Description
AddColumn ( CustomListColumn column ) : void

Adds a column to the collection

AddItem ( ObjRow row ) : void

Adds an ObjRow to the collection

AddItem ( object o ) : void

Adds an item to the collection. Creates an ObjRow and calls AddItem(ObjRow row)

Clear ( ) : void

Clears all ObjRows from the internal collection.

CustomList ( ) : System

Initializes a new instance of the T:CustomList class.

DeleteRow ( ObjRow row ) : void

Deletes the row.

GetColumn ( string name ) : CustomListColumn

Gets a column by the specified title

Méthodes protégées

Méthode Description
OnKeyDown ( KeyEventArgs e ) : void

Raises the event.

OnKeyPress ( KeyPressEventArgs e ) : void

Raises the event.

OnKeyUp ( KeyEventArgs e ) : void

Raises the event.

OnLostFocus ( EventArgs e ) : void

Raises the event.

OnMouseDown ( MouseEventArgs e ) : void

Raises the event.

OnMouseMove ( MouseEventArgs e ) : void

Raises the event.

OnMouseUp ( MouseEventArgs e ) : void

Raises the event.

OnPaint ( PaintEventArgs e ) : void

Raises the event.

OnResize ( EventArgs e ) : void

Raises the event.

Private Methods

Méthode Description
loading ( object sender, RegistrySaveLoadEventArgs e ) : void
mouseOverRows ( int mouseY, CustomListColumn overCol ) : void
rowClicked ( object sender, MouseEventArgs e ) : void
saving ( object sender, RegistrySaveLoadEventArgs e ) : void
scroll ( object sender, ScrollEventArgs e ) : void

Method Details

AddColumn() public méthode

Adds a column to the collection
public AddColumn ( CustomListColumn column ) : void
column CustomListColumn The column to add
Résultat void

AddItem() public méthode

Adds an ObjRow to the collection
public AddItem ( ObjRow row ) : void
row ObjRow The row to add
Résultat void

AddItem() public méthode

Adds an item to the collection. Creates an ObjRow and calls AddItem(ObjRow row)
public AddItem ( object o ) : void
o object The item to add
Résultat void

Clear() public méthode

Clears all ObjRows from the internal collection.
public Clear ( ) : void
Résultat void

CustomList() public méthode

Initializes a new instance of the T:CustomList class.
public CustomList ( ) : System
Résultat System

DeleteRow() public méthode

Deletes the row.
public DeleteRow ( ObjRow row ) : void
row ObjRow The row to delete.
Résultat void

GetColumn() public méthode

Gets a column by the specified title
public GetColumn ( string name ) : CustomListColumn
name string The name of the column to get
Résultat CustomListColumn

OnKeyDown() protected méthode

Raises the event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A that contains the event data.
Résultat void

OnKeyPress() protected méthode

Raises the event.
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs A that contains the event data.
Résultat void

OnKeyUp() protected méthode

Raises the event.
protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A that contains the event data.
Résultat void

OnLostFocus() protected méthode

Raises the event.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Résultat void

OnMouseDown() protected méthode

Raises the event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Résultat void

OnMouseMove() protected méthode

Raises the event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Résultat void

OnMouseUp() protected méthode

Raises the event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Résultat void

OnPaint() protected méthode

Raises the event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data.
Résultat void

OnResize() protected méthode

Raises the event.
protected OnResize ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Résultat void

Property Details

clicked protected_oe property

The last ObjRow clicked on
protected ObjRow,DSShared.Lists clicked
Résultat ObjRow

selected protected_oe property

The currently selected ObjRow
protected ObjRow,DSShared.Lists selected
Résultat ObjRow