Skip to main content

GridLengthCollection Class

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

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; }

Number of definitions in the collection.

index]

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

Gets or sets the definition at the given index.

Methods

Add(GridLength item)

public void Add(GridLength item)

Adds a definition to the collection.

Clear()

public void Clear()

Removes all definitions from the collection.

Insert(int index, GridLength item)

public void Insert(int index, GridLength item)

Inserts a definition at the given index.

RemoveAt(int index)

public void RemoveAt(int index)

Removes the definition at the given index.