Class GridCoveredCellInfoCollection
A collection with elements derived from type CoveredCellInfo. It implements ICoveredCellsProvider. Internally this collection maintains both a List of CoveredCellInfo and a so called pool. The pool allows immediate lookup of cell spans given a cells row and column index. The list allows looping through cell spans in the order they were added. GridCoveredCellInfoCollection assumes that there is no overlap between cell spans. For any given cell there only at most one cell span must exist.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCoveredCellInfoCollection : CellSpanInfoCollection<CoveredCellInfo>, IList<CoveredCellInfo>, ICollection<CoveredCellInfo>, IEnumerable<CoveredCellInfo>, IEnumerable, ISupportInitialize, ICoveredCellsProvider
Constructors
GridCoveredCellInfoCollection(GridModel)
Initializes a new GridCoveredCellInfoCollection.
Declaration
public GridCoveredCellInfoCollection(GridModel gridModel)
Parameters
| Type | Name | Description |
|---|---|---|
| GridModel | gridModel | The grid model. |
Properties
IsEmpty
Specifies whether grid has covered cells.
Declaration
public override bool IsEmpty { get; }
Property Value
| Type |
|---|
| System.Boolean |
Overrides
Ranges
Gets the covered ranges for the grid.
Declaration
public GridRangeInfoList Ranges { get; }
Property Value
| Type |
|---|
| GridRangeInfoList |
Methods
Added(CoveredCellInfo)
Declaration
protected override void Added(CoveredCellInfo item)
Parameters
| Type | Name | Description |
|---|---|---|
| CoveredCellInfo | item |
Overrides
Find(Int32, Int32, out GridRangeInfo)
Gets a covered cell from the
Declaration
public bool Find(int rowIndex, int columnIndex, out GridRangeInfo coveredRange)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Index of the row. |
| System.Int32 | columnIndex | Index of the column. |
| GridRangeInfo | coveredRange | The resulting covered range. If there is no covered range for the cell this range will return GridRangeInfo.Cell(rowIndex, columnIndex) |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if a covered cell was found; otherwise false. |
GetCoveredCell(Int32, Int32)
Gets a covered cell from the
Declaration
public CoveredCellInfo GetCoveredCell(int rowIndex, int columnIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Row index. |
| System.Int32 | columnIndex | Column index. |
Returns
| Type | Description |
|---|---|
| CoveredCellInfo | The covered cell. |
InvalidateRanges()
Clears the covered ranges collection.
Declaration
public void InvalidateRanges()
OnGetCellSpan(Int32, Int32, out CoveredCellInfo)
Declaration
protected override bool OnGetCellSpan(int rowIndex, int columnIndex, out CoveredCellInfo result)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | |
| System.Int32 | columnIndex | |
| CoveredCellInfo | result |
Returns
| Type |
|---|
| System.Boolean |
Overrides
Removed(CoveredCellInfo)
Declaration
protected override void Removed(CoveredCellInfo item)
Parameters
| Type | Name | Description |
|---|---|---|
| CoveredCellInfo | item |
Overrides
SetCoveredRanges(CoveredCellInfo, Boolean)
Declaration
public void SetCoveredRanges(CoveredCellInfo item, bool setOrReset)
Parameters
| Type | Name | Description |
|---|---|---|
| CoveredCellInfo | item | |
| System.Boolean | setOrReset |