DataStoreExtensions

public static class DataStoreExtensions
Extension methods for the IDataStore<T>

Methods

GetExpandedRowCount<T>

#Example
public static int GetExpandedRowCount<T>(this IDataStore<T> store, int index = -1)
Gets the expanded row count of the specified IDataStore<ITreeItem>, taking into account the expanded state of each child.
Remarks: Note that this has to traverse the entire tree up to the index, so it will get slower for large trees
store (IDataStore<T>)The data store to count the rows
index (int = -1)The index in store to count up to, or -1 to count all rows
The total row count including the count of any expanded nodes
ArgumentNullExceptionWhen store is null

GetRowOfIndexPath<T>

#Example
public static int GetRowOfIndexPath<T>(this IDataStore<T> store, int[] indexPath)
Gets the row of a path of indecies for each level in a IDataStore<ITreeItem>
store (IDataStore<T>)The data store to get the row.
indexPath (int[])Array of indexes leading to the item to get the row for.
Row index where the specified index path points to
ArgumentNullExceptionWhen store is null