menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCoveredCellInfoCollection - API Reference

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    CellSpanInfoCollection<CoveredCellInfo>
    GridCoveredCellInfoCollection
    Implements
    System.Collections.Generic.IList<CoveredCellInfo>
    System.Collections.Generic.ICollection<CoveredCellInfo>
    System.Collections.Generic.IEnumerable<CoveredCellInfo>
    System.Collections.IEnumerable
    System.ComponentModel.ISupportInitialize
    ICoveredCellsProvider
    Inherited Members
    CellSpanInfoCollection<CoveredCellInfo>.GetCellSpan(Int32, Int32)
    CellSpanInfoCollection<CoveredCellInfo>.ResetCache()
    CellSpanInfoCollection<CoveredCellInfo>.ResetCellSpan(Int32, Int32)
    CellSpanInfoCollection<CoveredCellInfo>.ResetCellSpan(CellSpanInfoBase)
    CellSpanInfoCollection<CoveredCellInfo>.SearchCellSpan(CellSpanInfoBase)
    CellSpanInfoCollection<CoveredCellInfo>.CheckExistCellSpan(CellSpanInfoBase)
    CellSpanInfoCollection<CoveredCellInfo>.InsertRows(Int32, Int32)
    CellSpanInfoCollection<CoveredCellInfo>.InsertRows(Int32, Int32, CellSpanInfoCollection<CoveredCellInfo>)
    CellSpanInfoCollection<CoveredCellInfo>.RemoveRows(Int32, Int32)
    CellSpanInfoCollection<CoveredCellInfo>.RemoveRows(Int32, Int32, CellSpanInfoCollection<CoveredCellInfo>)
    CellSpanInfoCollection<CoveredCellInfo>.InsertColumns(Int32, Int32)
    CellSpanInfoCollection<CoveredCellInfo>.InsertColumns(Int32, Int32, CellSpanInfoCollection<CoveredCellInfo>)
    CellSpanInfoCollection<CoveredCellInfo>.RemoveColumns(Int32, Int32)
    CellSpanInfoCollection<CoveredCellInfo>.RemoveColumns(Int32, Int32, CellSpanInfoCollection<CoveredCellInfo>)
    CellSpanInfoCollection<CoveredCellInfo>.BeginInit()
    CellSpanInfoCollection<CoveredCellInfo>.EndInit()
    CellSpanInfoCollection<CoveredCellInfo>.IndexOf(CoveredCellInfo)
    CellSpanInfoCollection<CoveredCellInfo>.Insert(Int32, CoveredCellInfo)
    CellSpanInfoCollection<CoveredCellInfo>.RemoveAt(Int32)
    CellSpanInfoCollection<CoveredCellInfo>.Add(CoveredCellInfo)
    CellSpanInfoCollection<CoveredCellInfo>.Clear()
    CellSpanInfoCollection<CoveredCellInfo>.Contains(CoveredCellInfo)
    CellSpanInfoCollection<CoveredCellInfo>.CopyTo(CoveredCellInfo[], Int32)
    CellSpanInfoCollection<CoveredCellInfo>.Remove(CoveredCellInfo)
    CellSpanInfoCollection<CoveredCellInfo>.GetEnumerator()
    CellSpanInfoCollection<CoveredCellInfo>.IEnumerable.GetEnumerator()
    CellSpanInfoCollection<CoveredCellInfo>.Item[Int32]
    CellSpanInfoCollection<CoveredCellInfo>.Count
    CellSpanInfoCollection<CoveredCellInfo>.IsReadOnly
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    System.Boolean
    Overrides
    Syncfusion.Windows.Controls.Cells.CellSpanInfoCollection<Syncfusion.Windows.Controls.Cells.CoveredCellInfo>.IsEmpty

    Ranges

    Gets the covered ranges for the grid.

    Declaration
    public GridRangeInfoList Ranges { get; }
    Property Value
    Type Description
    GridRangeInfoList

    Methods

    Added(CoveredCellInfo)

    Declaration
    protected override void Added(CoveredCellInfo item)
    Parameters
    Type Name Description
    CoveredCellInfo item
    Overrides
    Syncfusion.Windows.Controls.Cells.CellSpanInfoCollection<Syncfusion.Windows.Controls.Cells.CoveredCellInfo>.Added(Syncfusion.Windows.Controls.Cells.CoveredCellInfo)

    Find(Int32, Int32, out GridRangeInfo)

    Gets a covered cell from the that includes the specified cells row and column index or if there is no covered range for the cell the method returns a cell range for the given row and column index.

    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 that includes the specified cells row and column index.

    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 Description
    System.Boolean
    Overrides
    Syncfusion.Windows.Controls.Cells.CellSpanInfoCollection<Syncfusion.Windows.Controls.Cells.CoveredCellInfo>.OnGetCellSpan(System.Int32, System.Int32, Syncfusion.Windows.Controls.Cells.CoveredCellInfo)

    Removed(CoveredCellInfo)

    Declaration
    protected override void Removed(CoveredCellInfo item)
    Parameters
    Type Name Description
    CoveredCellInfo item
    Overrides
    Syncfusion.Windows.Controls.Cells.CellSpanInfoCollection<Syncfusion.Windows.Controls.Cells.CoveredCellInfo>.Removed(Syncfusion.Windows.Controls.Cells.CoveredCellInfo)

    SetCoveredRanges(CoveredCellInfo, Boolean)

    Declaration
    public void SetCoveredRanges(CoveredCellInfo item, bool setOrReset)
    Parameters
    Type Name Description
    CoveredCellInfo item
    System.Boolean setOrReset

    Implements

    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    System.ComponentModel.ISupportInitialize
    ICoveredCellsProvider
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved