GridLengthCollection

An observable GridLength list that invalidates its owning Grid when changed.
public sealed class GridLengthCollection : Collection<GridLength>

Methods

ClearItems

Removes all elements from the Collection.

protected override void ClearItems()

InsertItem

Inserts an element into the Collection at the specified index.

protected override void InsertItem(
  int index,
  GridLength item)
ParameterSummary
int indexThe zero-based index at which item should be inserted.
GridLength itemThe object to insert. The value can be null for reference types.

Exceptions

-or-

index is greater than Collection.Count.

RemoveItem

Removes the element at the specified index of the Collection.

protected override void RemoveItem(
  int index)
ParameterSummary
int indexThe zero-based index of the element to remove.

Exceptions

-or-

index is equal to or greater than Collection.Count.

SetItem

Replaces the element at the specified index.

protected override void SetItem(
  int index,
  GridLength item)
ParameterSummary
int indexThe zero-based index of the element to replace.
GridLength itemThe new value for the element at the specified index. The value can be null for reference types.

Exceptions

-or-

index is greater than Collection.Count.