C# Class XPTable.Models.Cell

Inheritance: IDisposable
Datei anzeigen Open project: binaryage/xrefresh Class Usage Examples

Public Properties

Property Type Description
Icon System.Drawing.Icon

Private Properties

Property Type Description
GetState bool
Init void
SetSelected void
SetState void
ShouldSerializeBackColor bool
ShouldSerializeEditable bool
ShouldSerializeEnabled bool
ShouldSerializeFont bool
ShouldSerializeForeColor bool
ShouldSerializePadding bool

Public Methods

Method Description
Cell ( ) : System

Initializes a new instance of the Cell class with default settings

Cell ( object value ) : System

Initializes a new instance of the Cell class with the specified object

Cell ( object value, CellStyle cellStyle ) : System

Initializes a new instance of the Cell class with the specified text and CellStyle

Cell ( object value, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Cell class with the specified object, fore Color, back Color and Font

Cell ( string text ) : System

Initializes a new instance of the Cell class with the specified text

Cell ( string text, CellStyle cellStyle ) : System

Initializes a new instance of the Cell class with the specified text and CellStyle

Cell ( string text, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Cell class with the specified text, fore Color, back Color and Font

Cell ( string text, Image image ) : System

Initializes a new instance of the Cell class with the specified text and Image value

Cell ( string text, Image image, CellStyle cellStyle ) : System

Initializes a new instance of the Cell class with the specified text, Image and CellStyle

Cell ( string text, Image image, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Cell class with the specified text, Image, fore Color, back Color and Font

Cell ( string text, bool check ) : System

Initializes a new instance of the Cell class with the specified text and check value

Cell ( string text, bool check, CellStyle cellStyle ) : System

Initializes a new instance of the Cell class with the specified text, check value and CellStyle

Cell ( string text, bool check, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Cell class with the specified text, check value, fore Color, back Color and Font

Cell ( string text, object value ) : System

Initializes a new instance of the Cell class with the specified text and object

Cell ( string text, object value, CellStyle cellStyle ) : System

Initializes a new instance of the Cell class with the specified text, object and CellStyle

Cell ( string text, object value, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Cell class with the specified text, object, fore Color, back Color and Font

Dispose ( ) : void

Releases all resources used by the Cell

Protected Methods

Method Description
OnPropertyChanged ( XPTable.Events.CellEventArgs e ) : void

Raises the PropertyChanged event

Private Methods

Method Description
GetState ( int flag ) : bool

Returns the state represented by the specified state flag

Init ( ) : void

Initialise default values

SetSelected ( bool selected ) : void

Sets whether the Cell is selected

SetState ( int flag, bool value ) : void

Sets the state represented by the specified state flag to the specified value

ShouldSerializeBackColor ( ) : bool

Specifies whether the BackColor property should be serialized at design time

ShouldSerializeEditable ( ) : bool

Specifies whether the Editable property should be serialized at design time

ShouldSerializeEnabled ( ) : bool

Specifies whether the Enabled property should be serialized at design time

ShouldSerializeFont ( ) : bool

Specifies whether the Font property should be serialized at design time

ShouldSerializeForeColor ( ) : bool

Specifies whether the ForeColor property should be serialized at design time

ShouldSerializePadding ( ) : bool

Specifies whether the Padding property should be serialized at design time

Method Details

Cell() public method

Initializes a new instance of the Cell class with default settings
public Cell ( ) : System
return System

Cell() public method

Initializes a new instance of the Cell class with the specified object
public Cell ( object value ) : System
value object The object displayed in the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text and CellStyle
public Cell ( object value, CellStyle cellStyle ) : System
value object The object displayed in the Cell
cellStyle CellStyle A CellStyle that specifies the visual appearance /// of the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified object, fore Color, back Color and Font
public Cell ( object value, Color foreColor, Color backColor, Font font ) : System
value object The object displayed in the Cell
foreColor Color The foreground Color of the Cell
backColor Color The background Color of the Cell
font System.Drawing.Font The Font used to draw the text in the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text
public Cell ( string text ) : System
text string The text displayed in the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text and CellStyle
public Cell ( string text, CellStyle cellStyle ) : System
text string The text displayed in the Cell
cellStyle CellStyle A CellStyle that specifies the visual appearance /// of the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text, fore Color, back Color and Font
public Cell ( string text, Color foreColor, Color backColor, Font font ) : System
text string The text displayed in the Cell
foreColor Color The foreground Color of the Cell
backColor Color The background Color of the Cell
font System.Drawing.Font The Font used to draw the text in the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text and Image value
public Cell ( string text, Image image ) : System
text string The text displayed in the Cell
image Image The Image displayed in the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text, Image and CellStyle
public Cell ( string text, Image image, CellStyle cellStyle ) : System
text string The text displayed in the Cell
image Image The Image displayed in the Cell
cellStyle CellStyle A CellStyle that specifies the visual appearance /// of the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text, Image, fore Color, back Color and Font
public Cell ( string text, Image image, Color foreColor, Color backColor, Font font ) : System
text string The text displayed in the Cell
image Image The Image displayed in the Cell
foreColor Color The foreground Color of the Cell
backColor Color The background Color of the Cell
font System.Drawing.Font The Font used to draw the text in the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text and check value
public Cell ( string text, bool check ) : System
text string The text displayed in the Cell
check bool Specifies whether the Cell is Checked
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text, check value and CellStyle
public Cell ( string text, bool check, CellStyle cellStyle ) : System
text string The text displayed in the Cell
check bool Specifies whether the Cell is Checked
cellStyle CellStyle A CellStyle that specifies the visual appearance /// of the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text, check value, fore Color, back Color and Font
public Cell ( string text, bool check, Color foreColor, Color backColor, Font font ) : System
text string The text displayed in the Cell
check bool Specifies whether the Cell is Checked
foreColor Color The foreground Color of the Cell
backColor Color The background Color of the Cell
font System.Drawing.Font The Font used to draw the text in the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text and object
public Cell ( string text, object value ) : System
text string The text displayed in the Cell
value object The object displayed in the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text, object and CellStyle
public Cell ( string text, object value, CellStyle cellStyle ) : System
text string The text displayed in the Cell
value object The object displayed in the Cell
cellStyle CellStyle A CellStyle that specifies the visual appearance /// of the Cell
return System

Cell() public method

Initializes a new instance of the Cell class with the specified text, object, fore Color, back Color and Font
public Cell ( string text, object value, Color foreColor, Color backColor, Font font ) : System
text string The text displayed in the Cell
value object The object displayed in the Cell
foreColor Color The foreground Color of the Cell
backColor Color The background Color of the Cell
font System.Drawing.Font The Font used to draw the text in the Cell
return System

Dispose() public method

Releases all resources used by the Cell
public Dispose ( ) : void
return void

OnPropertyChanged() protected method

Raises the PropertyChanged event
protected OnPropertyChanged ( XPTable.Events.CellEventArgs e ) : void
e XPTable.Events.CellEventArgs A CellEventArgs that contains the event data
return void

Property Details

Icon public_oe property

public Icon,System.Drawing Icon
return System.Drawing.Icon