GridLengthCollection
An observable
GridLength list that invalidates its owning Grid when changed.- Kind: Class
- Namespace: SkeleKit
- Inherits:
Collection<GridLength> - Implements:
ICollection<GridLength>,IEnumerable<GridLength>,IList<GridLength>,IReadOnlyCollection<GridLength>,IReadOnlyList<GridLength>,ICollection,IEnumerable,IList
Methods
ClearItems
Removes all elements from the Collection.
InsertItem
Inserts an element into the Collection at the specified index.
| Parameter | Summary |
|---|---|
int index | The zero-based index at which item should be inserted. |
GridLength item | The object to insert. The value can be null for reference types. |
Exceptions
ArgumentOutOfRangeException:indexis less than zero.
-or-
index is greater than Collection.Count.
RemoveItem
Removes the element at the specified index of the Collection.
| Parameter | Summary |
|---|---|
int index | The zero-based index of the element to remove. |
Exceptions
ArgumentOutOfRangeException:indexis less than zero.
-or-
index is equal to or greater than Collection.Count.
SetItem
Replaces the element at the specified index.
| Parameter | Summary |
|---|---|
int index | The zero-based index of the element to replace. |
GridLength item | The new value for the element at the specified index. The value can be null for reference types. |
Exceptions
ArgumentOutOfRangeException:indexis less than zero.
-or-
index is greater than Collection.Count.