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

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

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

Свойство Тип Описание
DefaultHeaderHeight int
MaximumHeaderHeight int
MinimumHeaderHeight int

Private Properties

Свойство Тип Описание
Init void
OnColumnPropertyChanged void
ShouldSerializeHeaderHeight bool

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

Метод Описание
ColumnAtX ( int xPosition ) : Column

Returns the Column that lies on the specified position

ColumnHeaderRect ( Column column ) : Rectangle

Returns a rectangle that countains the header of the specified column

ColumnHeaderRect ( int index ) : Rectangle

Returns a rectangle that countains the header of the column at the specified index in the ColumnModel

ColumnIndexAtX ( int xPosition ) : int

Returns the index of the Column that lies on the specified position

ColumnModel ( ) : System

Initializes a new instance of the ColumnModel class with default settings

ColumnModel ( Column columns ) : System

Initializes a new instance of the Row class with an array of Column objects

ColumnModel ( string columns ) : System

Initializes a new instance of the ColumnModel class with an array of strings representing TextColumns

ContainsCellEditor ( string name ) : bool

Gets whether the ColumnModel contains an ICellEditor with the specified name

ContainsCellRenderer ( string name ) : bool

Gets whether the ColumnModel contains an ICellRenderer with the specified name

GetCellEditor ( int column ) : ICellEditor

Gets the ICellEditor for the Column at the specified index in the ColumnModel

GetCellEditor ( string name ) : ICellEditor

Returns the ICellEditor that is associated with the specified name

GetCellRenderer ( int column ) : ICellRenderer

Gets the ICellRenderer for the Column at the specified index in the ColumnModel

GetCellRenderer ( string name ) : ICellRenderer

Returns the ICellRenderer that is associated with the specified name

NextVisibleColumn ( int index ) : int

Returns the index of the first visible Column that is to the right of the Column at the specified index in the ColumnModel

PreviousVisibleColumn ( int index ) : int

Returns the index of the first visible Column that is to the left of the Column at the specified index in the ColumnModel

SetCellEditor ( string name, ICellEditor editor ) : void

Associates the specified ICellRenderer with the specified name

SetCellRenderer ( string name, ICellRenderer renderer ) : void

Associates the specified ICellRenderer with the specified name

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

Метод Описание
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the ColumnModel and optionally releases the managed resources

OnColumnAdded ( XPTable.Events.ColumnModelEventArgs e ) : void

Raises the ColumnAdded event

OnColumnRemoved ( XPTable.Events.ColumnModelEventArgs e ) : void

Raises the ColumnRemoved event

OnHeaderHeightChanged ( EventArgs e ) : void

Raises the HeaderHeightChanged event

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

Метод Описание
Init ( ) : void

Initialise default settings

OnColumnPropertyChanged ( XPTable.Events.ColumnEventArgs e ) : void

Raises the ColumnPropertyChanged event

ShouldSerializeHeaderHeight ( ) : bool

Specifies whether the HeaderHeight property should be serialized at design time

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

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

Returns the Column that lies on the specified position
public ColumnAtX ( int xPosition ) : Column
xPosition int The x-coordinate to check
Результат Column

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

Returns a rectangle that countains the header of the specified column
public ColumnHeaderRect ( Column column ) : Rectangle
column Column The column
Результат System.Drawing.Rectangle

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

Returns a rectangle that countains the header of the column at the specified index in the ColumnModel
public ColumnHeaderRect ( int index ) : Rectangle
index int The index of the column
Результат System.Drawing.Rectangle

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

Returns the index of the Column that lies on the specified position
public ColumnIndexAtX ( int xPosition ) : int
xPosition int The x-coordinate to check
Результат int

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

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

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

Initializes a new instance of the Row class with an array of Column objects
public ColumnModel ( Column columns ) : System
columns Column An array of Cell objects that represent the Columns /// of the ColumnModel
Результат System

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

Initializes a new instance of the ColumnModel class with an array of strings representing TextColumns
public ColumnModel ( string columns ) : System
columns string An array of strings that represent the Columns of /// the ColumnModel
Результат System

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

Gets whether the ColumnModel contains an ICellEditor with the specified name
public ContainsCellEditor ( string name ) : bool
name string The name associated with the ICellEditor
Результат bool

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

Gets whether the ColumnModel contains an ICellRenderer with the specified name
public ContainsCellRenderer ( string name ) : bool
name string The name associated with the ICellRenderer
Результат bool

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

Releases the unmanaged resources used by the ColumnModel and optionally releases the managed resources
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Gets the ICellEditor for the Column at the specified index in the ColumnModel
public GetCellEditor ( int column ) : ICellEditor
column int The index of the Column in the ColumnModel for /// which an ICellEditor will be retrieved
Результат ICellEditor

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

Returns the ICellEditor that is associated with the specified name
public GetCellEditor ( string name ) : ICellEditor
name string The name thst is associated with an ICellEditor
Результат ICellEditor

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

Gets the ICellRenderer for the Column at the specified index in the ColumnModel
public GetCellRenderer ( int column ) : ICellRenderer
column int The index of the Column in the ColumnModel for /// which an ICellRenderer will be retrieved
Результат ICellRenderer

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

Returns the ICellRenderer that is associated with the specified name
public GetCellRenderer ( string name ) : ICellRenderer
name string The name thst is associated with an ICellEditor
Результат ICellRenderer

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

Returns the index of the first visible Column that is to the right of the Column at the specified index in the ColumnModel
public NextVisibleColumn ( int index ) : int
index int The index of the Column for which the first /// visible Column that is to the right of the specified Column is to /// be found
Результат int

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

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

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

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

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

Raises the HeaderHeightChanged event
protected OnHeaderHeightChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

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

Returns the index of the first visible Column that is to the left of the Column at the specified index in the ColumnModel
public PreviousVisibleColumn ( int index ) : int
index int The index of the Column for which the first /// visible Column that is to the left of the specified Column is to /// be found
Результат int

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

Associates the specified ICellRenderer with the specified name
public SetCellEditor ( string name, ICellEditor editor ) : void
name string The name to be associated with the specified ICellEditor
editor ICellEditor The ICellEditor to be added to the ColumnModel
Результат void

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

Associates the specified ICellRenderer with the specified name
public SetCellRenderer ( string name, ICellRenderer renderer ) : void
name string The name to be associated with the specified ICellRenderer
renderer ICellRenderer The ICellRenderer to be added to the ColumnModel
Результат void

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

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

The default height of a column header
public static int DefaultHeaderHeight
Результат int

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

The maximum height of a column header
public static int MaximumHeaderHeight
Результат int

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

The minimum height of a column header
public static int MinimumHeaderHeight
Результат int