WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RowColumnIndexValueArray<T>

    Show / Hide Table of Contents

    Class RowColumnIndexValueArray<T>

    A generic class that emulates a subset of a Dictionary{T}. Internally rows are hold in a dictionary and each row has a dictionary of cells. The class also provides support for adding, removing and moving rows and columns.

    Inheritance
    System.Object
    RowColumnIndexValueArray<T>
    GridCellData
    Implements
    System.Collections.Generic.IEnumerable<SerializableKeyValuePair<RowColumnIndex, T>>
    System.Collections.IEnumerable
    System.IDisposable
    Inherited Members
    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.Cells
    Assembly: Syncfusion.GridCommon.Wpf.dll
    Syntax
    public class RowColumnIndexValueArray<T> : IEnumerable<SerializableKeyValuePair<RowColumnIndex, T>>, IEnumerable, IDisposable
    Type Parameters
    Name Description
    T

    Constructors

    RowColumnIndexValueArray()

    Declaration
    public RowColumnIndexValueArray()

    RowColumnIndexValueArray(IRowColumnIndexValueArrayCallbacks<T>)

    Declaration
    public RowColumnIndexValueArray(IRowColumnIndexValueArrayCallbacks<T> callback)
    Parameters
    Type Name Description
    IRowColumnIndexValueArrayCallbacks<T> callback

    Properties

    Item[RowColumnIndex]

    Declaration
    public T this[RowColumnIndex cell] { get; set; }
    Parameters
    Type Name Description
    RowColumnIndex cell
    Property Value
    Type Description
    T

    Item[Int32, Int32]

    Declaration
    public T this[int rowIndex, int columnIndex] { get; set; }
    Parameters
    Type Name Description
    System.Int32 rowIndex
    System.Int32 columnIndex
    Property Value
    Type Description
    T

    Rows

    Declaration
    public List<IntegerCellsArray<T>> Rows { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<IntegerCellsArray<T>>

    Methods

    Add(RowColumnIndex, T)

    Adds the cell and its value the dictionary. There is no "OnMoved" callback triggered.

    Declaration
    public void Add(RowColumnIndex cell, T value)
    Parameters
    Type Name Description
    RowColumnIndex cell
    T value

    Add(SerializableKeyValuePair<RowColumnIndex, T>)

    Adds the cell and its value the dictionary.

    Declaration
    public void Add(SerializableKeyValuePair<RowColumnIndex, T> value)
    Parameters
    Type Name Description
    SerializableKeyValuePair<RowColumnIndex, T> value

    Clear()

    Clears out the dictionary. There are no "OnMoved" callback triggered.

    Declaration
    public void Clear()

    Clear(RowColumnIndex)

    Removes the cell from the dictionary. There is no "OnRemoved" callback triggered.

    Declaration
    public bool Clear(RowColumnIndex cell)
    Parameters
    Type Name Description
    RowColumnIndex cell
    Returns
    Type Description
    System.Boolean

    ContainsKey(RowColumnIndex)

    Declaration
    public bool ContainsKey(RowColumnIndex cell)
    Parameters
    Type Name Description
    RowColumnIndex cell
    Returns
    Type Description
    System.Boolean

    Dispose()

    Declaration
    public void Dispose()

    GetEnumerator()

    Declaration
    public IEnumerator<SerializableKeyValuePair<RowColumnIndex, T>> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<SerializableKeyValuePair<RowColumnIndex, T>>

    InsertColumns(Int32, Int32)

    Declaration
    public void InsertColumns(int insertAtColumnIndex, int count)
    Parameters
    Type Name Description
    System.Int32 insertAtColumnIndex
    System.Int32 count

    InsertColumns(Int32, Int32, RowColumnIndexValueArray<T>)

    Declaration
    public void InsertColumns(int insertAtColumnIndex, int count, RowColumnIndexValueArray<T> moveCells)
    Parameters
    Type Name Description
    System.Int32 insertAtColumnIndex
    System.Int32 count
    RowColumnIndexValueArray<T> moveCells

    InsertRows(Int32, Int32)

    Declaration
    public void InsertRows(int insertAtRowIndex, int count)
    Parameters
    Type Name Description
    System.Int32 insertAtRowIndex
    System.Int32 count

    InsertRows(Int32, Int32, RowColumnIndexValueArray<T>)

    Declaration
    public void InsertRows(int insertAtRowIndex, int count, RowColumnIndexValueArray<T> moveCells)
    Parameters
    Type Name Description
    System.Int32 insertAtRowIndex
    System.Int32 count
    RowColumnIndexValueArray<T> moveCells

    Iterate(CellSpanInfoBase, RowColumnIndexValueArray<T>.RowColumnIndexValueDelegate)

    Declaration
    public void Iterate(CellSpanInfoBase cellSpan, RowColumnIndexValueArray<T>.RowColumnIndexValueDelegate callback)
    Parameters
    Type Name Description
    CellSpanInfoBase cellSpan
    RowColumnIndexValueArray.RowColumnIndexValueDelegate<> callback

    Remove(CellSpanInfoBase)

    Declaration
    public void Remove(CellSpanInfoBase cellSpan)
    Parameters
    Type Name Description
    CellSpanInfoBase cellSpan

    Remove(RowColumnIndex)

    Removes the cell from the dictionary. There is no "OnRemoved" callback triggered.

    Declaration
    public bool Remove(RowColumnIndex cell)
    Parameters
    Type Name Description
    RowColumnIndex cell
    Returns
    Type Description
    System.Boolean

    RemoveAll()

    Removes all entries from the dictionary and calls "OnRemoveCell" callback for each deleted cell.

    Declaration
    public virtual void RemoveAll()

    RemoveColumns(Int32, Int32)

    Declaration
    public void RemoveColumns(int removeAtColumnIndex, int count)
    Parameters
    Type Name Description
    System.Int32 removeAtColumnIndex
    System.Int32 count

    RemoveColumns(Int32, Int32, RowColumnIndexValueArray<T>)

    Declaration
    public void RemoveColumns(int removeAtColumnIndex, int count, RowColumnIndexValueArray<T> moveCells)
    Parameters
    Type Name Description
    System.Int32 removeAtColumnIndex
    System.Int32 count
    RowColumnIndexValueArray<T> moveCells

    RemoveRows(Int32, Int32)

    Declaration
    public void RemoveRows(int removeAtRowIndex, int count)
    Parameters
    Type Name Description
    System.Int32 removeAtRowIndex
    System.Int32 count

    RemoveRows(Int32, Int32, RowColumnIndexValueArray<T>)

    Declaration
    public void RemoveRows(int removeAtRowIndex, int count, RowColumnIndexValueArray<T> moveCells)
    Parameters
    Type Name Description
    System.Int32 removeAtRowIndex
    System.Int32 count
    RowColumnIndexValueArray<T> moveCells

    SetCallback(IRowColumnIndexValueArrayCallbacks<T>)

    Declaration
    public void SetCallback(IRowColumnIndexValueArrayCallbacks<T> callback)
    Parameters
    Type Name Description
    IRowColumnIndexValueArrayCallbacks<T> callback

    TryGetValue(RowColumnIndex, out T)

    Declaration
    public bool TryGetValue(RowColumnIndex cell, out T value)
    Parameters
    Type Name Description
    RowColumnIndex cell
    T value
    Returns
    Type Description
    System.Boolean

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    System.IDisposable

    Extension Methods

    PivotExtension.GroupByMany<TElement>(IEnumerable<TElement>, Int32, Func<TElement, Object>[])
    PivotExtension.GroupByMany<TElement>(IEnumerable<TElement>, IEnumerable<Func<TElement, Object>>)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    ChartExtensionUtils.DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved