C# Class DSShared.Lists.CustomListColumn

Class representing a column in a CustomList control
Afficher le fichier Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Méthodes publiques

Свойство Type Description
MinWidth int

Méthodes publiques

Méthode Description
CustomListColumn ( ) : System

Initializes a new instance of the T:CustomListColumn class.

CustomListColumn ( string title ) : System

Initializes a new instance of the T:CustomListColumn class.

CustomListColumn ( string title, ObjProperty property ) : System

Initializes a new instance of the T:CustomListColumn class.

CustomListColumn ( string title, System property ) : System

Initializes a new instance of the T:CustomListColumn class.

Equals ( object other ) : bool

Equality test. Based on GetHashCode() between objects of this type

FireClick ( ObjRow row ) : void

Raises the OnClick event for the specified row

FireKeyPress ( ObjRow row, KeyPressEventArgs e ) : void

Raises the KeyPress event for the specified row

GetHashCode ( ) : int

Gets the hash code of the title of this column

ResizeTitle ( System font ) : void

Resizes the title width based on the size of the input font

Method Details

CustomListColumn() public méthode

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

CustomListColumn() public méthode

Initializes a new instance of the T:CustomListColumn class.
public CustomListColumn ( string title ) : System
title string Column title
Résultat System

CustomListColumn() public méthode

Initializes a new instance of the T:CustomListColumn class.
public CustomListColumn ( string title, ObjProperty property ) : System
title string Column title
property ObjProperty ObjProperty that will reflect on the objects contained in the list
Résultat System

CustomListColumn() public méthode

Initializes a new instance of the T:CustomListColumn class.
public CustomListColumn ( string title, System property ) : System
title string Column title
property System PropertyInfo that will reflect on the objects contained in the list
Résultat System

Equals() public méthode

Equality test. Based on GetHashCode() between objects of this type
public Equals ( object other ) : bool
other object
Résultat bool

FireClick() public méthode

Raises the OnClick event for the specified row
public FireClick ( ObjRow row ) : void
row ObjRow Row to raise event with
Résultat void

FireKeyPress() public méthode

Raises the KeyPress event for the specified row
public FireKeyPress ( ObjRow row, KeyPressEventArgs e ) : void
row ObjRow Row to raise event with
e System.Windows.Forms.KeyPressEventArgs Args
Résultat void

GetHashCode() public méthode

Gets the hash code of the title of this column
public GetHashCode ( ) : int
Résultat int

ResizeTitle() public méthode

Resizes the title width based on the size of the input font
public ResizeTitle ( System font ) : void
font System
Résultat void

Property Details

MinWidth public_oe static_oe property

Minimum width of a column
public static int MinWidth
Résultat int