C# Class DSShared.Lists.CustomListColumn

Class representing a column in a CustomList control
显示文件 Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Public Properties

Property Type Description
MinWidth int

Public Methods

Method 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 method

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

CustomListColumn() public method

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

CustomListColumn() public method

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
return System

CustomListColumn() public method

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
return System

Equals() public method

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

FireClick() public method

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

FireKeyPress() public method

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
return void

GetHashCode() public method

Gets the hash code of the title of this column
public GetHashCode ( ) : int
return int

ResizeTitle() public method

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

Property Details

MinWidth public_oe static_oe property

Minimum width of a column
public static int MinWidth
return int