Skip to main content

GridLengthCollection Class

Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI

Notifying GridLength collection. Every mutation invalidates the owning Grid's measure pass so layout stays in sync without callers having to remember to call InvalidateMeasure() manually.

public sealed class GridLengthCollection

Properties

Count

public int Count { get; }

Gets the number of elements contained in the array. (inherited)

index]

public GridLength this[int index] { get; set; }

Indexer for the UIElementCollection. Gets or sets the UIElement stored at the zero-based index of the UIElementCollection. (inherited)

Methods

Add(GridLength item)

public void Add(GridLength item)

Appends a UIElement to the end of the UIElementCollection. (inherited)

ParameterTypeDescription
itemGridLength

Clear()

public void Clear()

Removes all elements from the UIElementCollection. (inherited)

Insert(int index, GridLength item)

public void Insert(int index, GridLength item)

Inserts an element into the UIElementCollection at the specified index. (inherited)

ParameterTypeDescription
indexintThe zero-based index at which value should be inserted.
itemGridLength

RemoveAt(int index)

public void RemoveAt(int index)

Removes the UIElement at the specified index. (inherited)

ParameterTypeDescription
indexintThe zero-based index of the element to remove.