C# Class XPTable.Models.ColumnModel

Inheritance: System.ComponentModel.Component
Afficher le fichier Open project: binaryage/xrefresh Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultHeaderHeight int
MaximumHeaderHeight int
MinimumHeaderHeight int

Private Properties

Свойство Type Description
Init void
OnColumnPropertyChanged void
ShouldSerializeHeaderHeight bool

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ColumnAtX() public méthode

Returns the Column that lies on the specified position
public ColumnAtX ( int xPosition ) : Column
xPosition int The x-coordinate to check
Résultat Column

ColumnHeaderRect() public méthode

Returns a rectangle that countains the header of the specified column
public ColumnHeaderRect ( Column column ) : Rectangle
column Column The column
Résultat System.Drawing.Rectangle

ColumnHeaderRect() public méthode

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
Résultat System.Drawing.Rectangle

ColumnIndexAtX() public méthode

Returns the index of the Column that lies on the specified position
public ColumnIndexAtX ( int xPosition ) : int
xPosition int The x-coordinate to check
Résultat int

ColumnModel() public méthode

Initializes a new instance of the ColumnModel class with default settings
public ColumnModel ( ) : System
Résultat System

ColumnModel() public méthode

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
Résultat System

ColumnModel() public méthode

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
Résultat System

ContainsCellEditor() public méthode

Gets whether the ColumnModel contains an ICellEditor with the specified name
public ContainsCellEditor ( string name ) : bool
name string The name associated with the ICellEditor
Résultat bool

ContainsCellRenderer() public méthode

Gets whether the ColumnModel contains an ICellRenderer with the specified name
public ContainsCellRenderer ( string name ) : bool
name string The name associated with the ICellRenderer
Résultat bool

Dispose() protected méthode

Releases the unmanaged resources used by the ColumnModel and optionally releases the managed resources
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetCellEditor() public méthode

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
Résultat ICellEditor

GetCellEditor() public méthode

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
Résultat ICellEditor

GetCellRenderer() public méthode

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
Résultat ICellRenderer

GetCellRenderer() public méthode

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
Résultat ICellRenderer

NextVisibleColumn() public méthode

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
Résultat int

OnColumnAdded() protected méthode

Raises the ColumnAdded event
protected OnColumnAdded ( XPTable.Events.ColumnModelEventArgs e ) : void
e XPTable.Events.ColumnModelEventArgs A ColumnModelEventArgs that contains the event data
Résultat void

OnColumnRemoved() protected méthode

Raises the ColumnRemoved event
protected OnColumnRemoved ( XPTable.Events.ColumnModelEventArgs e ) : void
e XPTable.Events.ColumnModelEventArgs A ColumnModelEventArgs that contains the event data
Résultat void

OnHeaderHeightChanged() protected méthode

Raises the HeaderHeightChanged event
protected OnHeaderHeightChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Résultat void

PreviousVisibleColumn() public méthode

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
Résultat int

SetCellEditor() public méthode

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
Résultat void

SetCellRenderer() public méthode

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
Résultat void

Property Details

DefaultHeaderHeight public_oe static_oe property

The default height of a column header
public static int DefaultHeaderHeight
Résultat int

MaximumHeaderHeight public_oe static_oe property

The maximum height of a column header
public static int MaximumHeaderHeight
Résultat int

MinimumHeaderHeight public_oe static_oe property

The minimum height of a column header
public static int MinimumHeaderHeight
Résultat int