x4Trace Documentation v1.0
|
Represents a column of grid. More...
Public Member Functions | |
IColumn (IGrid parent, string text, int columnNumber, bool readOnly, int width) | |
Constructor. | |
virtual void | DrawColumn (IGraphics.GInterface.IGraphics gr, int x, int y) |
Draws the columns. | |
virtual bool | Click (int x, int y) |
Checks the click on columns. | |
int | IsOverResize (int x, int y) |
Position is over the resize area. | |
Protected Attributes | |
IGrid | parent |
Parent. | |
IColor | backColor = new IColor(255, 212, 208, 200) |
Back color of column. | |
IColor | foreColor = IColor.Black |
Fore color of column. | |
GInterface.IFont | font |
Font of column. | |
IStringAlignment | stringFormat = new IStringAlignment() |
alignment of column. | |
string | text = "" |
Text of column. | |
int | x = 0 |
X coordinate of column. | |
int | y = 0 |
Y coordinate of column. | |
int | width = 0 |
Width of column. | |
int | lineWidth = 1 |
Rectangle line width of column. | |
IColor | lineColor = IColor.Black |
Color of line. | |
int | columnNumber = 0 |
Number of column. | |
bool | readOnly = false |
The column is readonly. | |
bool | isAutoHeight = false |
Sets automatical adjusment of height of all rows. | |
bool | isAutoWidth = false |
Sets automatical adjusment of width of all rows. | |
bool | isToStringAsNumber3 = false |
Sets 3 segmentation of numbers. | |
object | tag |
Tag of column. | |
IGridControl | control |
Parent control. | |
bool | isFixed = false |
The column is fixed. | |
ICellData | cellData |
Data of cells. | |
Properties | |
object | Tag [get, set] |
Tag of column. | |
string | Text [get, set] |
Text of column. | |
IGraphics.GInterface.IFont | Font [get, set] |
Font of column. | |
IColor | BackColor [get, set] |
Background color of column. | |
IColor | ForeColor [get, set] |
Foreground color of column. | |
IStringAlignment | StringFormat [get, set] |
Alignment of column. | |
IColor | LineColor [get, set] |
Color of border line. | |
int | LineWidth [get, set] |
Width of border line. | |
int | ColumnNumber [get, set] |
Number of column. | |
int | Width [get, set] |
Width of column. | |
int | Height [get] |
Height of column. | |
int | X [get] |
Xposition of column. | |
bool | ReadOnly [get, set] |
The column is readonly. | |
IGridControl | Control [get, set] |
The input control of column. | |
bool | IsAutoHeight [get, set] |
Automatical calculate height of cells of column. | |
bool | IsAutoWidth [get, set] |
Automatical calculate height of cells of column. | |
bool | IsToStringAsNumber3 [get, set] |
Shows the numbers as numberformat. | |
ICellData | CellData [get] |
Cell data. | |
bool | IsFixed [get, set] |
The column is fixed. | |
Private Member Functions | |
void | ControlLeave (object sender, EventArgs e) |
Mouse left the control. | |
void | Control_IGCHide (IGridControl control, int val) |
input control hided. | |
void | Control_IGCShow (IGridControl control) |
Input control shown. | |
void | Control_IGCScroll (IGridControl control, int val) |
Input control scroll. | |
void | Control_IGCKeyUp (IGridControl control, int key) |
Key up event handler of input control. | |
void | Control_IGCKeyDown (IGridControl control, int key) |
Key down event handler of input control. | |
void | Control_IGCFocusLeave (IGridControl control) |
Focus leave of input control. | |
Represents a column of grid.
IGraphics.Grid.IColumn.IColumn | ( | IGrid | parent, |
string | text, | ||
int | columnNumber, | ||
bool | readOnly, | ||
int | width ) |
Constructor.
parent | Parent grid |
text | Text of column. |
columnNumber | Number of column. |
readOnly | The column is readonly. |
width | Width of column. |
|
virtual |
Checks the click on columns.
x | X coordinate. |
y | Y coordinate, |
|
private |
Focus leave of input control.
control | The control. |
|
private |
input control hided.
control | The control. |
val | Value. |
|
private |
Key down event handler of input control.
control | The control. |
key | Key code. |
|
private |
Key up event handler of input control.
control | The control. |
key | Key code. |
|
private |
Input control scroll.
control | The control. |
val | Value of scroll. |
|
private |
Input control shown.
control | The control. |
|
private |
Mouse left the control.
sender | Sender. |
e | Mouse event args. |
|
virtual |
Draws the columns.
gr | Graphics to draw. |
x | X coordinate. |
y | Y coordinate. |
int IGraphics.Grid.IColumn.IsOverResize | ( | int | x, |
int | y ) |
Position is over the resize area.
x | X coordinate. |
y | Y coordinate. |