C# Класс XPTable.Models.Cell

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Icon System.Drawing.Icon

Private Properties

Свойство Тип Описание
GetState bool
Init void
SetSelected void
SetState void
ShouldSerializeBackColor bool
ShouldSerializeEditable bool
ShouldSerializeEnabled bool
ShouldSerializeFont bool
ShouldSerializeForeColor bool
ShouldSerializePadding bool

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnPropertyChanged ( XPTable.Events.CellEventArgs e ) : void

Raises the PropertyChanged event

Приватные методы

Метод Описание
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

Описание методов

Cell() публичный Метод

Initializes a new instance of the Cell class with default settings
public Cell ( ) : System
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Cell() публичный Метод

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
Результат System

Dispose() публичный Метод

Releases all resources used by the Cell
public Dispose ( ) : void
Результат void

OnPropertyChanged() защищенный Метод

Raises the PropertyChanged event
protected OnPropertyChanged ( XPTable.Events.CellEventArgs e ) : void
e XPTable.Events.CellEventArgs A CellEventArgs that contains the event data
Результат void

Описание свойств

Icon публичное свойство

public Icon,System.Drawing Icon
Результат System.Drawing.Icon