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>
Implements
System.Collections.IEnumerable
System.IDisposable
Assembly: Syncfusion.GridCommon.WPF.dll
Syntax
public class RowColumnIndexValueArray<T> : Object, IEnumerable<SerializableKeyValuePair<RowColumnIndex, T>>, IEnumerable, IDisposable
Type Parameters
Constructors
RowColumnIndexValueArray()
Declaration
public RowColumnIndexValueArray()
RowColumnIndexValueArray(IRowColumnIndexValueArrayCallbacks<T>)
Declaration
public RowColumnIndexValueArray(IRowColumnIndexValueArrayCallbacks<T> callback)
Parameters
Properties
Item[RowColumnIndex]
Declaration
public T this[RowColumnIndex cell] { get; set; }
Parameters
Property Value
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
Rows
Declaration
public List<IntegerCellsArray<T>> Rows { get; }
Property Value
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
Add(SerializableKeyValuePair<RowColumnIndex, T>)
Adds the cell and its value the dictionary.
Declaration
public void Add(SerializableKeyValuePair<RowColumnIndex, T> value)
Parameters
Clear()
Clears out the dictionary. There are no "OnMoved" callback triggered.
Declaration
Clear(RowColumnIndex)
Removes the cell from the dictionary. There is no "OnRemoved" callback triggered.
Declaration
public bool Clear(RowColumnIndex cell)
Parameters
Returns
ContainsKey(RowColumnIndex)
Declaration
public bool ContainsKey(RowColumnIndex cell)
Parameters
Returns
Dispose()
Declaration
GetEnumerator()
Declaration
public IEnumerator<SerializableKeyValuePair<RowColumnIndex, T>> GetEnumerator()
Returns
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
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
Iterate(CellSpanInfoBase, RowColumnIndexValueArray<T>.RowColumnIndexValueDelegate)
Declaration
public void Iterate(CellSpanInfoBase cellSpan, RowColumnIndexValueArray<T>.RowColumnIndexValueDelegate callback)
Parameters
Remove(CellSpanInfoBase)
Declaration
public void Remove(CellSpanInfoBase cellSpan)
Parameters
Remove(RowColumnIndex)
Removes the cell from the dictionary. There is no "OnRemoved" callback triggered.
Declaration
public bool Remove(RowColumnIndex cell)
Parameters
Returns
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
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
SetCallback(IRowColumnIndexValueArrayCallbacks<T>)
Declaration
public void SetCallback(IRowColumnIndexValueArrayCallbacks<T> callback)
Parameters
TryGetValue(RowColumnIndex, out T)
Declaration
public bool TryGetValue(RowColumnIndex cell, out T value)
Parameters
Returns
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable