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

represents the rows of a grid. More...

Public Member Functions

 IRows (IGrid parent)
 Constructor.
 
virtual void DrawRows (IGraphics.GInterface.IGraphics gr, int x, int y, bool enforceDraw, int basex, int basey)
 Draws the rows.
 
virtual void DrawRow (IGraphics.Grid.ICellList row, IGraphics.GInterface.IGraphics gr, int vx, ref int y, bool enforceDraw)
 Draws the selected row.
 
virtual void AfterDrawRows (IGraphics.GInterface.IGraphics gr, int x, int y, bool enforceDraw, int basex, int basey)
 Runs when the drawing was finished.
 
virtual void AddSortColumn (int columnIndex)
 Adds sort column.
 
virtual void Sort ()
 Orders the rows.
 
virtual void Clear ()
 Clears the rows.
 
virtual void SetFont (int column, GInterface.IFont font)
 Sets font to column.
 
virtual void SetStringFormat (int column, IStringAlignment stringFormat)
 Set alignment to column.
 
virtual void SetCellHeightIsTextHeight (IColumn column)
 Sets all row height of column.
 
virtual ICellList AddSeparatorLine ()
 Adds a sepraator line.
 
virtual ICellList AddSeparatorLine (int height, IColor backColor)
 Adds a separator line.
 
virtual ICellList AddSeparatorLine (int index, int height, IColor backColor)
 Inserts a separator line.
 
virtual ICellList Add ()
 Adds a new row to grid.
 
virtual ICellList AddTemp ()
 Adds a new temporary row to grid.
 
virtual void ApplyTemp ()
 Applys the temporary rows to grid.
 
virtual ICellList Add (int count)
 Adds rows to grid.
 
virtual ICellList Add (int count, int height)
 Adds rows to grid.
 
virtual ICellList InsertAt (int index)
 Inserts row in grid.
 
virtual System.Collections.Generic.List< ICellListGetSelectedRows ()
 returns the selected row of grid.
 
virtual void RemoveAt (int index)
 Removes the row at index.
 
virtual void RemoveFrom (int from)
 Removes the rows from index.
 
virtual void SetColumnColor (int columnIndex, IColor backColor, IColor foreColor)
 Sets the background and foreground color of a column.
 
virtual void CurrentCellsClear ()
 Clears the current cells list.
 
virtual void CurrentCellsRemove (ICellList cells)
 Removes the current cells.
 
virtual void CurrentCellsAdd (ICell cell)
 Adds to current cells list.
 
virtual void SetCurrentCell (ICell cell)
 Sets the current cell.
 
virtual void SetCurrentCells (ICellList cells)
 Sets the current cells.
 
virtual void RemoveColumn (int index)
 Removes a column from grid.
 
virtual void AddColumn (int index)
 Adds column at index.
 
virtual void AddColumn ()
 Adds column.
 
virtual void Click (int x, int y)
 Click of mouse.
 
virtual bool SelectCell (ICell c)
 Selects a cell.
 
virtual bool SetControlToCurrentCell (ICell cell, bool enable)
 Sets the input control to current cell.
 
virtual bool SetControlToCurrentCellEnforce (IGraphics.Grid.ICell cell, bool enable)
 Enforce sets the input control to current cell.
 
virtual void ControlEnforceHide ()
 Enforce hide of input control.
 
virtual void MergeColumn (int column, int rowfrom, int rowlength)
 Merges cells by column.
 
virtual void Merge (int row)
 Merges a row.
 
virtual void MergeRow (int row, int startColumn)
 Merges a row.
 
virtual void Merge (ICell fromCell, ICell toCell)
 Merges cells.
 
virtual void Merge (int row, int plusRows)
 Merges rows.
 
virtual ICell Merge (int row, int from, int to)
 Merges rows.
 
virtual void Merge (ICellList cells)
 Merge list of cells.
 
virtual void EliminateMerge (ICell cell)
 Eliminates the merge of cells.
 
virtual void ShowCell (ICell cell)
 Shows cell.
 
virtual bool IsCellVisible (ICell cell)
 Returns true when the cell is visible in the drawing area.
 
virtual bool IsRowVisible (int index)
 Returns true when the row is visible in the drawing area.
 
virtual bool IsColumnVisible (int index)
 Returns true when the column is visible in the drawing area.
 
virtual ICell GetFirstVisibleCell ()
 Returns the first visible cell.
 
virtual int GetVisibleColumnCount (int firstCellIndex)
 Returns the count of visible columns.
 
virtual int GetVisibleRowCount (int firstIndex)
 Returns the count of visible rows.
 
virtual ICell GetCell (int x, int y)
 Returns the cell by position.
 
virtual ICell GetCellByXY ()
 Returns the cell by parent mouse position.
 
virtual ICellList GetCurrentRow ()
 Returns the current row.
 

Protected Attributes

List< ICellListrows = new List<ICellList>()
 List of rows.
 
List< ICellListtempRows = new List<ICellList>()
 Temporary rows.
 
ICellList currentCells = new ICellList()
 List of current cells.
 
ICellList mergedCells = new ICellList()
 List of merged cells.
 
ICellList postDrawFrameCells = new ICellList()
 Frame of post draw.
 
System.Collections.ArrayList fixedRows = new ArrayList()
 List of fixed rows.
 
IGrid parent
 Parent.
 
int rowHeight = 21
 Default height of row.
 
bool canAddRow = false
 Enables to add new row.
 
ICellList addRow
 Row to add.
 
SortingType sortingType = SortingType.ASC
 Type of sorting/order.
 
int fixedWidth = 0
 Width of fixed columns.
 
int fixedHeight = 0
 Height of fixed rows.
 
bool isCellDataChangedEnabled = true
 Enables the data change of cells.
 
IGridControl currentControl
 Current input control of the grid.
 

Properties

ICellList CurrentCells [get]
 Returns a copy of current cells.
 
ICellList LastRow [get]
 Reuturns the latest row.
 
ICellList this[int index] [get]
 Indexer of rows.
 
bool IsCellDataChangedEnabled [get, set]
 Enables the data change of cells.
 
int AllRowsHeight [get]
 returns the all height of rows.
 
int RowHeight [get, set]
 Default height of row.
 
bool CanAddRow [get, set]
 Enables to add new row.
 
int Count [get]
 The count of rows.
 
int Capacity [get]
 Capacity buffer of rows.
 
ICellList AddingRowCells [get]
 Cell list of adding rows.
 
ICellList MergedCells [get]
 List of merged cells.
 
ICellList PostDrawFrameCells [get]
 Cells of post draw.
 
int FixedWidth [get]
 Width of fixed columns.
 
int FixedHeigth [get]
 Height of fixed columns.
 
List< ICellListTempRows [get, set]
 Temporary rows.
 

Detailed Description

represents the rows of a grid.

Constructor & Destructor Documentation

◆ IRows()

IGraphics.Grid.IRows.IRows ( IGrid parent)

Constructor.

Parameters
parentParent grid.

Member Function Documentation

◆ Add() [1/3]

virtual ICellList IGraphics.Grid.IRows.Add ( )
virtual

Adds a new row to grid.

Returns
The added row.

◆ Add() [2/3]

virtual ICellList IGraphics.Grid.IRows.Add ( int count)
virtual

Adds rows to grid.

Parameters
countCount of rows.
Returns
List of added cells.

◆ Add() [3/3]

virtual ICellList IGraphics.Grid.IRows.Add ( int count,
int height )
virtual

Adds rows to grid.

Parameters
countCount of rows.
heightHeight of rows.
Returns
List of added cells.

◆ AddColumn()

virtual void IGraphics.Grid.IRows.AddColumn ( int index)
virtual

Adds column at index.

Parameters
indexIndex of insert.

◆ AddSeparatorLine() [1/3]

virtual ICellList IGraphics.Grid.IRows.AddSeparatorLine ( )
virtual

Adds a sepraator line.

Returns
The line.

◆ AddSeparatorLine() [2/3]

virtual ICellList IGraphics.Grid.IRows.AddSeparatorLine ( int height,
IColor backColor )
virtual

Adds a separator line.

Parameters
heightHeight of line.
backColorBackground color of line.
Returns
The line.

◆ AddSeparatorLine() [3/3]

virtual ICellList IGraphics.Grid.IRows.AddSeparatorLine ( int index,
int height,
IColor backColor )
virtual

Inserts a separator line.

Parameters
indexIndex of insert.
heightHeight of line.
backColorBackground color of line.
Returns
The line.

◆ AddSortColumn()

virtual void IGraphics.Grid.IRows.AddSortColumn ( int columnIndex)
virtual

Adds sort column.

Parameters
columnIndex

◆ AddTemp()

virtual ICellList IGraphics.Grid.IRows.AddTemp ( )
virtual

Adds a new temporary row to grid.

Returns
The temporary added row.

◆ AfterDrawRows()

virtual void IGraphics.Grid.IRows.AfterDrawRows ( IGraphics.GInterface.IGraphics gr,
int x,
int y,
bool enforceDraw,
int basex,
int basey )
virtual

Runs when the drawing was finished.

Parameters
grGraphics to draw.
xX coordinate of start.
yY coordinate of start.
enforceDrawEnforces the draw.
basexBasic X coordinate.
baseyBasic Y coordinate.

◆ Click()

virtual void IGraphics.Grid.IRows.Click ( int x,
int y )
virtual

Click of mouse.

Parameters
xX position.
yY position.

◆ CurrentCellsAdd()

virtual void IGraphics.Grid.IRows.CurrentCellsAdd ( ICell cell)
virtual

Adds to current cells list.

Parameters
cellCell to add.

◆ CurrentCellsRemove()

virtual void IGraphics.Grid.IRows.CurrentCellsRemove ( ICellList cells)
virtual

Removes the current cells.

Parameters
cellsCells of remove.

◆ DrawRow()

virtual void IGraphics.Grid.IRows.DrawRow ( IGraphics.Grid.ICellList row,
IGraphics.GInterface.IGraphics gr,
int vx,
ref int y,
bool enforceDraw )
virtual

Draws the selected row.

Parameters
rowRow to draw.
grGraphics to draw.
vxX coordinate.
yY coordinate.
enforceDrawEnforce.

◆ DrawRows()

virtual void IGraphics.Grid.IRows.DrawRows ( IGraphics.GInterface.IGraphics gr,
int x,
int y,
bool enforceDraw,
int basex,
int basey )
virtual

Draws the rows.

Parameters
grGraphics to draw.
xX coordinate of start.
yY coordinate of start.
enforceDrawEnforces the draw.
basexBasic X coordinate.
baseyBasic Y coordinate.

◆ EliminateMerge()

virtual void IGraphics.Grid.IRows.EliminateMerge ( ICell cell)
virtual

Eliminates the merge of cells.

Parameters
cellMerged cell.

◆ GetCell()

virtual ICell IGraphics.Grid.IRows.GetCell ( int x,
int y )
virtual

Returns the cell by position.

Parameters
xX coordinate.
yY coordinate.
Returns
Cell at position.

◆ GetCellByXY()

virtual ICell IGraphics.Grid.IRows.GetCellByXY ( )
virtual

Returns the cell by parent mouse position.

Returns
Cell at position.

◆ GetCurrentRow()

virtual ICellList IGraphics.Grid.IRows.GetCurrentRow ( )
virtual

Returns the current row.

Returns
Cell list of current row.

◆ GetFirstVisibleCell()

virtual ICell IGraphics.Grid.IRows.GetFirstVisibleCell ( )
virtual

Returns the first visible cell.

Returns
The cell.

◆ GetSelectedRows()

virtual System.Collections.Generic.List< ICellList > IGraphics.Grid.IRows.GetSelectedRows ( )
virtual

returns the selected row of grid.

Returns
The selected row.

◆ GetVisibleColumnCount()

virtual int IGraphics.Grid.IRows.GetVisibleColumnCount ( int firstCellIndex)
virtual

Returns the count of visible columns.

Parameters
firstCellIndexIndex of start cell.
Returns
Count of columns.

◆ GetVisibleRowCount()

virtual int IGraphics.Grid.IRows.GetVisibleRowCount ( int firstIndex)
virtual

Returns the count of visible rows.

Parameters
firstIndexIndex of start row.
Returns
Count of rows.

◆ InsertAt()

virtual ICellList IGraphics.Grid.IRows.InsertAt ( int index)
virtual

Inserts row in grid.

Parameters
indexIndex of insert.
Returns
The inserted row.

◆ IsCellVisible()

virtual bool IGraphics.Grid.IRows.IsCellVisible ( ICell cell)
virtual

Returns true when the cell is visible in the drawing area.

Parameters
cellThe cell.
Returns
True when visible.

◆ IsColumnVisible()

virtual bool IGraphics.Grid.IRows.IsColumnVisible ( int index)
virtual

Returns true when the column is visible in the drawing area.

Parameters
indexIndex of column.
Returns
True when visible.

◆ IsRowVisible()

virtual bool IGraphics.Grid.IRows.IsRowVisible ( int index)
virtual

Returns true when the row is visible in the drawing area.

Parameters
indexIndex of row.
Returns
True when visible.

◆ Merge() [1/5]

virtual void IGraphics.Grid.IRows.Merge ( ICell fromCell,
ICell toCell )
virtual

Merges cells.

Parameters
fromCellStart cell.
toCellEnd cell.

◆ Merge() [2/5]

virtual void IGraphics.Grid.IRows.Merge ( ICellList cells)
virtual

Merge list of cells.

Parameters
cellsCells to merge.

◆ Merge() [3/5]

virtual void IGraphics.Grid.IRows.Merge ( int row)
virtual

Merges a row.

Parameters
rowIndex of row.

◆ Merge() [4/5]

virtual ICell IGraphics.Grid.IRows.Merge ( int row,
int from,
int to )
virtual

Merges rows.

Parameters
rowIndex of row.
fromIndex of start column.
toIndex of end column.
Returns
The merged cell.

◆ Merge() [5/5]

virtual void IGraphics.Grid.IRows.Merge ( int row,
int plusRows )
virtual

Merges rows.

Parameters
rowIndex of row.
plusRowsCount of rows.

◆ MergeColumn()

virtual void IGraphics.Grid.IRows.MergeColumn ( int column,
int rowfrom,
int rowlength )
virtual

Merges cells by column.

Parameters
columnIndex of column.
rowfromIndex of start row.
rowlengthLength of rows.

◆ MergeRow()

virtual void IGraphics.Grid.IRows.MergeRow ( int row,
int startColumn )
virtual

Merges a row.

Parameters
rowIndex of row.
startColumnIndex of start column.

◆ RemoveAt()

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

Removes the row at index.

Parameters
index

◆ RemoveColumn()

virtual void IGraphics.Grid.IRows.RemoveColumn ( int index)
virtual

Removes a column from grid.

Parameters
indexIndex of column.

◆ RemoveFrom()

virtual void IGraphics.Grid.IRows.RemoveFrom ( int from)
virtual

Removes the rows from index.

Parameters
fromIndes of start.

◆ SelectCell()

virtual bool IGraphics.Grid.IRows.SelectCell ( ICell c)
virtual

Selects a cell.

Parameters
cThe cell.
Returns
Returns true when control is active.

◆ SetCellHeightIsTextHeight()

virtual void IGraphics.Grid.IRows.SetCellHeightIsTextHeight ( IColumn column)
virtual

Sets all row height of column.

Parameters
column

◆ SetColumnColor()

virtual void IGraphics.Grid.IRows.SetColumnColor ( int columnIndex,
IColor backColor,
IColor foreColor )
virtual

Sets the background and foreground color of a column.

Parameters
columnIndexIndex of column.
backColorBackground color.
foreColorForeground color.

◆ SetControlToCurrentCell()

virtual bool IGraphics.Grid.IRows.SetControlToCurrentCell ( ICell cell,
bool enable )
virtual

Sets the input control to current cell.

Parameters
cellCell to set.
enableEnables the control.
Returns
True when control is activated.

◆ SetControlToCurrentCellEnforce()

virtual bool IGraphics.Grid.IRows.SetControlToCurrentCellEnforce ( IGraphics.Grid.ICell cell,
bool enable )
virtual

Enforce sets the input control to current cell.

Parameters
cellCell to set.
enableEnables the control.
Returns
True when control is activated.

◆ SetCurrentCell()

virtual void IGraphics.Grid.IRows.SetCurrentCell ( ICell cell)
virtual

Sets the current cell.

Parameters
cellCell to set.

◆ SetCurrentCells()

virtual void IGraphics.Grid.IRows.SetCurrentCells ( ICellList cells)
virtual

Sets the current cells.

Parameters
cellsList of cells to set.

◆ SetFont()

virtual void IGraphics.Grid.IRows.SetFont ( int column,
GInterface.IFont font )
virtual

Sets font to column.

Parameters
columnIndex of column.
fontFont to set.

◆ SetStringFormat()

virtual void IGraphics.Grid.IRows.SetStringFormat ( int column,
IStringAlignment stringFormat )
virtual

Set alignment to column.

Parameters
columnIndex of column.
stringFormatAlignment of column.

◆ ShowCell()

virtual void IGraphics.Grid.IRows.ShowCell ( ICell cell)
virtual

Shows cell.

Parameters
cell

Property Documentation

◆ this[int index]

ICellList IGraphics.Grid.IRows.this[int index]
get

Indexer of rows.

Parameters
indexIndex of row.
Returns
Cell list of row.

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