Skip to main content

GridLength Struct

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

Size of a grid row or column.

public struct GridLength

Methods​

Auto()​

public static GridLength Auto()

Creates an auto-sized length.

Returns GridLength

Pixel(int pixels)​

public static GridLength Pixel(int pixels)

Creates a fixed pixel-sized length.

Returns GridLength

Star(int weight)​

public static GridLength Star(int weight = 1)

Creates a star-sized length with the given weight.

Returns GridLength

Fields​

Unit​

public GridUnitType Unit

The sizing mode for this length.

Value​

public int Value

Pixel size, or star weight when Unit is GridUnitType.Star.