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.SfCellGrid.UWP.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
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
Adds the cell and its value the dictionary.
Declaration
public void Add(SerializableKeyValuePair<RowColumnIndex, T> value)
Parameters
Adds the cell and its value the dictionary. There is no "OnMoved" callback triggered.
Declaration
public void Add(RowColumnIndex cell, T value)
Parameters
Clear()
Clears out the dictionary. There are no "OnMoved" callback triggered.
Declaration
Removes the cell from the dictionary. There is no "OnRemoved" callback triggered.
Declaration
public bool Clear(RowColumnIndex cell)
Parameters
Returns
Declaration
public bool ContainsKey(RowColumnIndex cell)
Parameters
Returns
Dispose()
Declaration
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
Dispose the instance, if it is True
|
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
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
Declaration
public bool TryGetValue(RowColumnIndex cell, out T value)
Parameters
Returns
Implements
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
System.IDisposable
Extension Methods