Class NavigatableList<T>
Collection class that allows for navigation forwards or backwards through the collection elements
Inherited Members
Namespace: Benday.Presentation
Assembly: Benday.Presentation.dll
Syntax
public class NavigatableList<T> : List<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Properties
| Edit this page View SourceCurrentIndex
Gets or sets the current index.
Declaration
public int CurrentIndex { get; }
Property Value
Type | Description |
---|---|
int |
IsAtFirst
Returns true if the current index is at the first element in the collection.
Declaration
public bool IsAtFirst { get; }
Property Value
Type | Description |
---|---|
bool |
IsAtLast
Returns true if the current index is at the last element in the collection.
Declaration
public bool IsAtLast { get; }
Property Value
Type | Description |
---|---|
bool |
Value
Gets the current value. Returns default(T) if the current index is -1 or out of bounds for the collection.
Declaration
public T? Value { get; }
Property Value
Type | Description |
---|---|
T |
Methods
| Edit this page View SourceMoveToFirst()
Move to the first element in the collection.
Declaration
public void MoveToFirst()
MoveToLast()
Move to the last element in the collection.
Declaration
public void MoveToLast()
Next()
Move to the next element in the collection.
Declaration
public void Next()
Previous()
Move to the previous element in the collection.
Declaration
public void Previous()