Class GridVolatileCellStyles
VolatileData allocates its own style objects and maintains a weak reference to them. Once the style object is finalized, the weak reference is removed from the hashtable.
Implements
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridVolatileCellStyles : Object, IDisposable
Constructors
GridVolatileCellStyles(IGridVolatileCellStylesHost)
Initializes a new GridVolatileCellStyles.
Declaration
public GridVolatileCellStyles(IGridVolatileCellStylesHost host)
Parameters
Type | Name | Description |
---|---|---|
IGridVolatileCellStylesHost | host | The IGridVolatileCellStylesHost object. |
GridVolatileCellStyles(IGridVolatileCellStylesHost, IGridVolatileData)
Declaration
public GridVolatileCellStyles(IGridVolatileCellStylesHost host, IGridVolatileData volatileData)
Parameters
Type | Name | Description |
---|---|---|
IGridVolatileCellStylesHost | host | |
IGridVolatileData | volatileData |
Properties
BaseStylesMap
Gets the base styles map.
Declaration
public GridBaseStylesMap BaseStylesMap { get; }
Property Value
Type |
---|
GridBaseStylesMap |
Host
Retrieves the host that handles the volatile cell styles.
Declaration
public IGridVolatileCellStylesHost Host { get; }
Property Value
Type |
---|
IGridVolatileCellStylesHost |
Item[RowColumnIndex]
Gives access to a GridStyleInfo at a given row and column index.
Declaration
public GridStyleInfo this[RowColumnIndex cell] { get; }
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cell |
Property Value
Type |
---|
GridStyleInfo |
Item[Int32, Int32]
Gives access to a GridStyleInfo at a given row and column index.
Declaration
public GridStyleInfo this[int rowIndex, int columnIndex] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | |
System.Int32 | columnIndex |
Property Value
Type |
---|
GridStyleInfo |
Methods
Clear()
Empty the cache.
Declaration
public void Clear()
Clear(CellSpanInfoBase)
Removes the given cell span from the cache.
Declaration
public void Clear(CellSpanInfoBase cellSpan)
Parameters
Type | Name | Description |
---|---|---|
CellSpanInfoBase | cellSpan | Cell spanned range. |
Clear(RowColumnIndex)
Resets cache for a specific cell.
Declaration
public void Clear(RowColumnIndex cell)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cell | The cell coordinates. |
CreateStyle(RowColumnIndex)
Declaration
protected virtual GridStyleInfo CreateStyle(RowColumnIndex cell)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cell |
Returns
Type |
---|
GridStyleInfo |
Dispose()
Declaration
public void Dispose()
GetItem(RowColumnIndex)
Gets the cached style information for a specific cell.
Declaration
public GridStyleInfo GetItem(RowColumnIndex cell)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cell | The cell coordinate. |
Returns
Type | Description |
---|---|
GridStyleInfo | The cached GridStyleInfo; NULL if no cache entry was found. |
InsertColumns(Int32, Int32)
Inserts the given no. of columns into the cell styles dictionary.
Declaration
public void InsertColumns(int insertAtColumnIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAtColumnIndex | The column index to insert. |
System.Int32 | count | No. of columns to be inserted. |
InsertColumns(Int32, Int32, GridVolatileCellStyles)
Inserts the given no. of columns into the cell styles dictionary.
Declaration
public void InsertColumns(int insertAtColumnIndex, int count, GridVolatileCellStyles moveCells)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAtColumnIndex | The column index to insert. |
System.Int32 | count | No. of columns to be inserted. |
GridVolatileCellStyles | moveCells | The move cells. |
InsertRows(Int32, Int32)
Inserts the given number of rows.
Declaration
public void InsertRows(int insertAtRowIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAtRowIndex | The row index where rows have been inserted. |
System.Int32 | count | The number of rows that were inserted. |
InsertRows(Int32, Int32, GridVolatileCellStyles)
Inserts the given number of rows.
Declaration
public void InsertRows(int insertAtRowIndex, int count, GridVolatileCellStyles moveCells)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAtRowIndex | The insert row index. |
System.Int32 | count | Number of rows to insert. |
GridVolatileCellStyles | moveCells | The move cells. |
OnQueryCellInfo(RowColumnIndex, GridStyleInfo)
Declaration
protected virtual void OnQueryCellInfo(RowColumnIndex cell, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cell | |
GridStyleInfo | style |
RemoveColumns(Int32, Int32)
Removes the specified columns from the cell styles dictionary.
Declaration
public void RemoveColumns(int removeAtColumnIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removeAtColumnIndex | Remove column index. |
System.Int32 | count | No. of columns to be removed. |
RemoveColumns(Int32, Int32, GridVolatileCellStyles)
Removes the specified columns from the cell styles dictionary.
Declaration
public void RemoveColumns(int removeAtColumnIndex, int count, GridVolatileCellStyles moveCells)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removeAtColumnIndex | Remove column index. |
System.Int32 | count | No. of columns to be removed. |
GridVolatileCellStyles | moveCells | The move cells. |
RemoveRows(Int32, Int32)
Removes the specified rows.
Declaration
public void RemoveRows(int removeAtRowIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removeAtRowIndex | The remove row index. |
System.Int32 | count | Number of rows to remove. |
RemoveRows(Int32, Int32, GridVolatileCellStyles)
Removes the specified rows.
Declaration
public void RemoveRows(int removeAtRowIndex, int count, GridVolatileCellStyles moveCells)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removeAtRowIndex | The remove row index. |
System.Int32 | count | Number of rows to remove. |
GridVolatileCellStyles | moveCells | The move cells. |
ResetItem(RowColumnIndex)
Resets cache for a specific cell.
Declaration
public void ResetItem(RowColumnIndex cell)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cell | The cell coordinates. |
SetItem(RowColumnIndex, GridStyleInfo)
Saves style information to be cached.
Declaration
public void SetItem(RowColumnIndex cell, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cell | The cell coordinate. |
GridStyleInfo | style | The GridStyleInfo to be cached. |