x4Trace Documentation v1.0
|
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< ICellList > | GetSelectedRows () |
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< ICellList > | rows = new List<ICellList>() |
List of rows. | |
List< ICellList > | tempRows = 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< ICellList > | TempRows [get, set] |
Temporary rows. | |
represents the rows of a grid.
IGraphics.Grid.IRows.IRows | ( | IGrid | parent | ) |
Constructor.
parent | Parent grid. |
|
virtual |
Adds a new row to grid.
|
virtual |
Adds rows to grid.
count | Count of rows. |
|
virtual |
Adds rows to grid.
count | Count of rows. |
height | Height of rows. |
|
virtual |
Adds column at index.
index | Index of insert. |
|
virtual |
Adds a sepraator line.
Adds a separator line.
height | Height of line. |
backColor | Background color of line. |
|
virtual |
Inserts a separator line.
index | Index of insert. |
height | Height of line. |
backColor | Background color of line. |
|
virtual |
Adds sort column.
columnIndex |
|
virtual |
Adds a new temporary row to grid.
|
virtual |
Runs when the drawing was finished.
gr | Graphics to draw. |
x | X coordinate of start. |
y | Y coordinate of start. |
enforceDraw | Enforces the draw. |
basex | Basic X coordinate. |
basey | Basic Y coordinate. |
|
virtual |
Click of mouse.
x | X position. |
y | Y position. |
|
virtual |
Adds to current cells list.
cell | Cell to add. |
|
virtual |
Removes the current cells.
cells | Cells of remove. |
|
virtual |
Draws the selected row.
row | Row to draw. |
gr | Graphics to draw. |
vx | X coordinate. |
y | Y coordinate. |
enforceDraw | Enforce. |
|
virtual |
Draws the rows.
gr | Graphics to draw. |
x | X coordinate of start. |
y | Y coordinate of start. |
enforceDraw | Enforces the draw. |
basex | Basic X coordinate. |
basey | Basic Y coordinate. |
|
virtual |
Eliminates the merge of cells.
cell | Merged cell. |
|
virtual |
Returns the cell by position.
x | X coordinate. |
y | Y coordinate. |
|
virtual |
Returns the cell by parent mouse position.
|
virtual |
Returns the current row.
|
virtual |
Returns the first visible cell.
|
virtual |
returns the selected row of grid.
|
virtual |
Returns the count of visible columns.
firstCellIndex | Index of start cell. |
|
virtual |
Returns the count of visible rows.
firstIndex | Index of start row. |
|
virtual |
Inserts row in grid.
index | Index of insert. |
|
virtual |
Returns true when the cell is visible in the drawing area.
cell | The cell. |
|
virtual |
Returns true when the column is visible in the drawing area.
index | Index of column. |
|
virtual |
Returns true when the row is visible in the drawing area.
index | Index of row. |
Merges cells.
fromCell | Start cell. |
toCell | End cell. |
|
virtual |
Merge list of cells.
cells | Cells to merge. |
|
virtual |
Merges a row.
row | Index of row. |
|
virtual |
Merges rows.
row | Index of row. |
from | Index of start column. |
to | Index of end column. |
|
virtual |
Merges rows.
row | Index of row. |
plusRows | Count of rows. |
|
virtual |
Merges cells by column.
column | Index of column. |
rowfrom | Index of start row. |
rowlength | Length of rows. |
|
virtual |
Merges a row.
row | Index of row. |
startColumn | Index of start column. |
|
virtual |
Removes the row at index.
index |
|
virtual |
Removes a column from grid.
index | Index of column. |
|
virtual |
Removes the rows from index.
from | Indes of start. |
|
virtual |
Selects a cell.
c | The cell. |
|
virtual |
Sets all row height of column.
column |
|
virtual |
Sets the background and foreground color of a column.
columnIndex | Index of column. |
backColor | Background color. |
foreColor | Foreground color. |
|
virtual |
Sets the input control to current cell.
cell | Cell to set. |
enable | Enables the control. |
|
virtual |
Enforce sets the input control to current cell.
cell | Cell to set. |
enable | Enables the control. |
|
virtual |
Sets the current cell.
cell | Cell to set. |
|
virtual |
Sets the current cells.
cells | List of cells to set. |
|
virtual |
Sets font to column.
column | Index of column. |
font | Font to set. |
|
virtual |
Set alignment to column.
column | Index of column. |
stringFormat | Alignment of column. |
|
virtual |
Shows cell.
cell |
|
get |
Indexer of rows.
index | Index of row. |