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

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

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

Свойство Тип Описание
DefaultWidth int
MaximumWidth int
MinimumWidth int
ResizePadding int
state byte

Private Properties

Свойство Тип Описание
GetState bool
Init void
SetState void
ShouldSerializeEditable bool
ShouldSerializeEnabled bool
ShouldSerializeWidth bool

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

Метод Описание
Column ( ) : System

Creates a new Column with default values

Column ( string text ) : System

Creates a new Column with the specified header text

Column ( string text, Image image ) : System

Creates a new Column with the specified header text and image

Column ( string text, Image image, int width ) : System

Creates a new Column with the specified header text, image and width

Column ( string text, Image image, int width, bool visible ) : System

Creates a new Column with the specified header text, image, width and visibility

Column ( string text, int width ) : System

Creates a new Column with the specified header text and width

Column ( string text, int width, bool visible ) : System

Creates a new Column with the specified header text, width and visibility

CreateDefaultEditor ( ) : ICellEditor

Gets the Column's default CellEditor

CreateDefaultRenderer ( ) : ICellRenderer

Gets the Column's default CellRenderer

GetDefaultEditorName ( ) : string

Gets a string that specifies the name of the Column's default CellEditor

GetDefaultRendererName ( ) : string

Gets a string that specifies the name of the Column's default CellRenderer

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

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

Raises the PropertyChanged event

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

Метод Описание
GetState ( int flag ) : bool

Returns the state represented by the specified state flag

Init ( ) : void

Initialise default values

SetState ( int flag, bool value ) : void

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

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

ShouldSerializeWidth ( ) : bool

Specifies whether the Width property should be serialized at design time

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

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

Creates a new Column with default values
public Column ( ) : System
Результат System

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

Creates a new Column with the specified header text
public Column ( string text ) : System
text string The text displayed in the column's header
Результат System

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

Creates a new Column with the specified header text and image
public Column ( string text, Image image ) : System
text string The text displayed in the column's header
image Image The image displayed on the column's header
Результат System

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

Creates a new Column with the specified header text, image and width
public Column ( string text, Image image, int width ) : System
text string The text displayed in the column's header
image Image The image displayed on the column's header
width int The column's width
Результат System

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

Creates a new Column with the specified header text, image, width and visibility
public Column ( string text, Image image, int width, bool visible ) : System
text string The text displayed in the column's header
image Image The image displayed on the column's header
width int The column's width
visible bool Specifies whether the column is visible
Результат System

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

Creates a new Column with the specified header text and width
public Column ( string text, int width ) : System
text string The text displayed in the column's header
width int The column's width
Результат System

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

Creates a new Column with the specified header text, width and visibility
public Column ( string text, int width, bool visible ) : System
text string The text displayed in the column's header
width int The column's width
visible bool Specifies whether the column is visible
Результат System

CreateDefaultEditor() публичный абстрактный Метод

Gets the Column's default CellEditor
public abstract CreateDefaultEditor ( ) : ICellEditor
Результат ICellEditor

CreateDefaultRenderer() публичный абстрактный Метод

Gets the Column's default CellRenderer
public abstract CreateDefaultRenderer ( ) : ICellRenderer
Результат ICellRenderer

GetDefaultEditorName() публичный абстрактный Метод

Gets a string that specifies the name of the Column's default CellEditor
public abstract GetDefaultEditorName ( ) : string
Результат string

GetDefaultRendererName() публичный абстрактный Метод

Gets a string that specifies the name of the Column's default CellRenderer
public abstract GetDefaultRendererName ( ) : string
Результат string

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

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

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

DefaultWidth публичное статическое свойство

The default width of a Column
public static int DefaultWidth
Результат int

MaximumWidth публичное статическое свойство

The maximum width of a Column
public static int MaximumWidth
Результат int

MinimumWidth публичное статическое свойство

The minimum width of a Column
public static int MinimumWidth
Результат int

ResizePadding публичное статическое свойство

The amount of space on each side of the Column that can be used as a resizing handle
public static int ResizePadding
Результат int

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

Contains the current state of the the Column
public byte state
Результат byte