C# 클래스 XPTable.Models.ColumnModel

상속: System.ComponentModel.Component
파일 보기 프로젝트 열기: binaryage/xrefresh 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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