Class RenderedCellsManager
Manages the DrawingVisuals for visible cells rendered to the grid canvas and provides routines for invalidating individual cells and move rendered cells after insert or remove rows or columns operations.
Inheritance
Namespace: Syncfusion.Windows.Controls.Cells
Assembly: Syncfusion.GridCommon.WPF.dll
Syntax
public class RenderedCellsManager : Object
Methods
InsertColumns(Int32, Int32, RenderedCellsMoveState)
Updates the cache when columns were inserted. Only for cells that belong to columns that were inserted the cell renderer's Render method will be called next time you call InvalidateVisual on the VirtualizingCellsControl or if the control is forced to render for other reasons.
Declaration
public void InsertColumns(int insertAtColumnIndex, int count, RenderedCellsMoveState moveCellsState)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAtColumnIndex | Index of the first column to insert. |
System.Int32 | count | The count. |
RenderedCellsMoveState | moveCellsState | State for moving cells. Use this when moving columns; otherwise specify null. |
InsertRows(Int32, Int32, RenderedCellsMoveState)
Updates the cache when rows were inserted. Only for cells that belong to rows that were inserted the cell renderer's Render method will be called next time you call InvalidateVisual on the VirtualizingCellsControl or if the control is forced to render for other reasons.
Declaration
public void InsertRows(int insertAtRowIndex, int count, RenderedCellsMoveState moveCellsState)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAtRowIndex | Index of the first row to insert. |
System.Int32 | count | The count. |
RenderedCellsMoveState | moveCellsState | State for moving cells. Use this when moving rows; otherwise specify null. |
Invalidate()
Invalidates all cells. This will force the cells Render method to be called again the next time you call InvalidateVisual on the VirtualizingCellsControl or if the control is forced to render for other reasons.
Declaration
public void Invalidate()
Invalidate(CellSpanInfoBase)
Invalidates the specified cell span. This will force the cells Render method to be called again the next time you call InvalidateVisual on the VirtualizingCellsControl or if the control is forced to render for other reasons.
Declaration
public void Invalidate(CellSpanInfoBase cellSpan)
Parameters
Type | Name | Description |
---|---|---|
CellSpanInfoBase | cellSpan | The cell span. |
Invalidate(RowColumnIndex)
Invalidates the specified cell row column index. This will force the cells Render method to be called again the next time you call InvalidateVisual on the VirtualizingCellsControl or if the control is forced to render for other reasons.
Declaration
public void Invalidate(RowColumnIndex cellRowColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | Index of the cell row column. |
RemoveColumns(Int32, Int32, RenderedCellsMoveState)
Updates the cache when columns were removed. Only for cells that belong to columns that become scrolled into view the cell renderer's Render method will be called next time you call InvalidateVisual on the VirtualizingCellsControl or if the control is forced to render for other reasons.
Declaration
public void RemoveColumns(int removeAtColumnIndex, int count, RenderedCellsMoveState moveCellsState)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removeAtColumnIndex | Index of the first column to remove. |
System.Int32 | count | The count. |
RenderedCellsMoveState | moveCellsState | State for moving cells. Use this when moving columns; otherwise specify null. |
RemoveRows(Int32, Int32, RenderedCellsMoveState)
Updates the cache when rows were removed. Only for cells that belong to rows that become scrolled into view the cell renderer's Render method will be called next time you call InvalidateVisual on the VirtualizingCellsControl or if the control is forced to render for other reasons.
Declaration
public void RemoveRows(int removeAtRowIndex, int count, RenderedCellsMoveState moveCellsState)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removeAtRowIndex | Index of the first row to remove. |
System.Int32 | count | The count. |
RenderedCellsMoveState | moveCellsState | State for moving cells. Use this when moving rows; otherwise specify null. |
TryGetVisual(RowColumnIndex, out DrawingVisual)
Declaration
public void TryGetVisual(RowColumnIndex rowColIndex, out DrawingVisual visual)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColIndex | |
System.Windows.Media.DrawingVisual | visual |