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

Public Member Functions

 IColumns (IGrid parent)
 Constructor.
 
virtual void DrawColumns (IGraphics.GInterface.IGraphics gr, int x, int y, int basex)
 Draws columns.
 
virtual bool Click (int x, int y)
 Clock on column.
 
virtual void Clear ()
 Clears the columns.
 
virtual int IndexOf (IColumn column)
 Returns the index of column.
 
virtual void Add ()
 Adds column.
 
virtual void Add (string text)
 
virtual void Add (string text, int width)
 Adds column.
 
virtual void Add (string text, int width, bool isAutoWidth, bool isAutoHeight)
 Adds column.
 
virtual void Add (string text, int width, IGridControl control)
 Adds column.
 
virtual void Add (string text, int width, IGridControl control, bool isAutoWidth, bool isAutoHeight)
 
virtual void Add (string text, int width, bool isAutoWidth, bool isAutoHeight, IGridControl control)
 
virtual void InsertAt (string text, int index)
 Inserts column at.
 
virtual void InsertAt (string text, int index, int width)
 Inserts column at.
 
virtual void Remove (IColumn column)
 Removes column.
 
virtual void RemoveAt (int index)
 Removes column.
 

Protected Attributes

ArrayList columns = new ArrayList()
 List of columns.
 
IGrid parent
 The parent.
 
int columnHeight = 20
 default height of columns.
 
int currentColumnWidth = 100
 Actual width of columns.
 
IColor backColor = new IColor(255, 212, 208, 200)
 Back color of column.
 

Properties

IColumn this[int index] [get]
 Indexer of columns.
 
IColor BackColor [get, set]
 Basic back color of columns.
 
int Count [get]
 Count of columns.
 
int ColumnHeight [get, set]
 Heightt of columns.
 
int CurrentColumnWidth [get, set]
 Width of current add column.
 

Constructor & Destructor Documentation

◆ IColumns()

IGraphics.Grid.IColumns.IColumns ( IGrid parent)

Constructor.

Parameters
parentParent.

Member Function Documentation

◆ Add() [1/6]

virtual void IGraphics.Grid.IColumns.Add ( string text)
virtual
Parameters
textText of column.

◆ Add() [2/6]

virtual void IGraphics.Grid.IColumns.Add ( string text,
int width )
virtual

Adds column.

Parameters
textText of column.
widthWidth of column.

◆ Add() [3/6]

virtual void IGraphics.Grid.IColumns.Add ( string text,
int width,
bool isAutoWidth,
bool isAutoHeight )
virtual

Adds column.

Parameters
textText of column.
widthWidth of column.
isAutoWidthAutomatically sets the width of column.
isAutoHeightAutomatically sets the height of column.

◆ Add() [4/6]

virtual void IGraphics.Grid.IColumns.Add ( string text,
int width,
bool isAutoWidth,
bool isAutoHeight,
IGridControl control )
virtual
Parameters
textText of column.
widthWidth of column.
isAutoWidthAutomatically sets the width of column.
isAutoHeightAutomatically sets the height of column.
controlInput control.

◆ Add() [5/6]

virtual void IGraphics.Grid.IColumns.Add ( string text,
int width,
IGridControl control )
virtual

Adds column.

Parameters
textText of column.
widthWidth of column.
controlInput control.

◆ Add() [6/6]

virtual void IGraphics.Grid.IColumns.Add ( string text,
int width,
IGridControl control,
bool isAutoWidth,
bool isAutoHeight )
virtual
Parameters
textText of column.
widthWidth of column.
control
isAutoWidthAutomatically sets the width of column.
isAutoHeightAutomatically sets the height of column.

◆ Click()

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

Clock on column.

Parameters
xX coordinate.
yY coordinate.
Returns
True when clicked.

◆ DrawColumns()

virtual void IGraphics.Grid.IColumns.DrawColumns ( IGraphics.GInterface.IGraphics gr,
int x,
int y,
int basex )
virtual

Draws columns.

Parameters
grGraphics to draw.
xX coordinate.
yY coordinate.
basexBasic of start of X.

◆ IndexOf()

virtual int IGraphics.Grid.IColumns.IndexOf ( IColumn column)
virtual

Returns the index of column.

Parameters
columnColumn.
Returns
Index of column.

◆ InsertAt() [1/2]

virtual void IGraphics.Grid.IColumns.InsertAt ( string text,
int index )
virtual

Inserts column at.

Parameters
textText of column.
indexIndex of insert.

◆ InsertAt() [2/2]

virtual void IGraphics.Grid.IColumns.InsertAt ( string text,
int index,
int width )
virtual

Inserts column at.

Parameters
textText of column.
indexIndex of insert.
widthWidth of column.

◆ Remove()

virtual void IGraphics.Grid.IColumns.Remove ( IColumn column)
virtual

Removes column.

Parameters
columnColumn to remove.

◆ RemoveAt()

virtual void IGraphics.Grid.IColumns.RemoveAt ( int index)
virtual

Removes column.

Parameters
indexIndex of column.

Property Documentation

◆ this[int index]

IColumn IGraphics.Grid.IColumns.this[int index]
get

Indexer of columns.

Parameters
index
Returns

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