C# Class XPTable.Models.Column

Inheritance: System.ComponentModel.Component
Datei anzeigen Open project: binaryage/xrefresh Class Usage Examples

Public Properties

Property Type Description
DefaultWidth int
MaximumWidth int
MinimumWidth int
ResizePadding int
state byte

Private Properties

Property Type Description
GetState bool
Init void
SetState void
ShouldSerializeEditable bool
ShouldSerializeEnabled bool
ShouldSerializeWidth bool

Public Methods

Method Description
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

Protected Methods

Method Description
OnPropertyChanged ( XPTable.Events.ColumnEventArgs e ) : void

Raises the PropertyChanged event

Private Methods

Method Description
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

Method Details

Column() public method

Creates a new Column with default values
public Column ( ) : System
return System

Column() public method

Creates a new Column with the specified header text
public Column ( string text ) : System
text string The text displayed in the column's header
return System

Column() public method

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
return System

Column() public method

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
return System

Column() public method

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
return System

Column() public method

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
return System

Column() public method

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
return System

CreateDefaultEditor() public abstract method

Gets the Column's default CellEditor
public abstract CreateDefaultEditor ( ) : ICellEditor
return ICellEditor

CreateDefaultRenderer() public abstract method

Gets the Column's default CellRenderer
public abstract CreateDefaultRenderer ( ) : ICellRenderer
return ICellRenderer

GetDefaultEditorName() public abstract method

Gets a string that specifies the name of the Column's default CellEditor
public abstract GetDefaultEditorName ( ) : string
return string

GetDefaultRendererName() public abstract method

Gets a string that specifies the name of the Column's default CellRenderer
public abstract GetDefaultRendererName ( ) : string
return string

OnPropertyChanged() protected method

Raises the PropertyChanged event
protected OnPropertyChanged ( XPTable.Events.ColumnEventArgs e ) : void
e XPTable.Events.ColumnEventArgs A ColumnEventArgs that contains the event data
return void

Property Details

DefaultWidth public_oe static_oe property

The default width of a Column
public static int DefaultWidth
return int

MaximumWidth public_oe static_oe property

The maximum width of a Column
public static int MaximumWidth
return int

MinimumWidth public_oe static_oe property

The minimum width of a Column
public static int MinimumWidth
return int

ResizePadding public_oe static_oe property

The amount of space on each side of the Column that can be used as a resizing handle
public static int ResizePadding
return int

state public_oe property

Contains the current state of the the Column
public byte state
return byte