x4Trace Documentation v1.0
Loading...
Searching...
No Matches
IGraphics.Grid.IColumn Class Reference

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.
 

Detailed Description

Represents a column of grid.

Constructor & Destructor Documentation

◆ IColumn()

IGraphics.Grid.IColumn.IColumn ( IGrid parent,
string text,
int columnNumber,
bool readOnly,
int width )

Constructor.

Parameters
parentParent grid
textText of column.
columnNumberNumber of column.
readOnlyThe column is readonly.
widthWidth of column.

Member Function Documentation

◆ Click()

virtual bool IGraphics.Grid.IColumn.Click ( int x,
int y )
virtual

Checks the click on columns.

Parameters
xX coordinate.
yY coordinate,
Returns
True when the column contains the coordinate.

◆ Control_IGCFocusLeave()

void IGraphics.Grid.IColumn.Control_IGCFocusLeave ( IGridControl control)
private

Focus leave of input control.

Parameters
controlThe control.

◆ Control_IGCHide()

void IGraphics.Grid.IColumn.Control_IGCHide ( IGridControl control,
int val )
private

input control hided.

Parameters
controlThe control.
valValue.

◆ Control_IGCKeyDown()

void IGraphics.Grid.IColumn.Control_IGCKeyDown ( IGridControl control,
int key )
private

Key down event handler of input control.

Parameters
controlThe control.
keyKey code.

◆ Control_IGCKeyUp()

void IGraphics.Grid.IColumn.Control_IGCKeyUp ( IGridControl control,
int key )
private

Key up event handler of input control.

Parameters
controlThe control.
keyKey code.

◆ Control_IGCScroll()

void IGraphics.Grid.IColumn.Control_IGCScroll ( IGridControl control,
int val )
private

Input control scroll.

Parameters
controlThe control.
valValue of scroll.

◆ Control_IGCShow()

void IGraphics.Grid.IColumn.Control_IGCShow ( IGridControl control)
private

Input control shown.

Parameters
controlThe control.

◆ ControlLeave()

void IGraphics.Grid.IColumn.ControlLeave ( object sender,
EventArgs e )
private

Mouse left the control.

Parameters
senderSender.
eMouse event args.

◆ DrawColumn()

virtual void IGraphics.Grid.IColumn.DrawColumn ( IGraphics.GInterface.IGraphics gr,
int x,
int y )
virtual

Draws the columns.

Parameters
grGraphics to draw.
xX coordinate.
yY coordinate.

◆ IsOverResize()

int IGraphics.Grid.IColumn.IsOverResize ( int x,
int y )

Position is over the resize area.

Parameters
xX coordinate.
yY coordinate.
Returns

The documentation for this class was generated from the following file: