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)
| Parameter | Type | Description |
|---|---|---|
item | GridLength |
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)
| Parameter | Type | Description |
|---|---|---|
index | int | The zero-based index at which value should be inserted. |
item | GridLength |
RemoveAt(int index)
public void RemoveAt(int index)
Removes the UIElement at the specified index. (inherited)
| Parameter | Type | Description |
|---|---|---|
index | int | The zero-based index of the element to remove. |