GridLength
The size of a grid row or column: absolute (points), auto-sized, or a weighted star share.
- Kind: Record struct
- Namespace: SkeleKit
- Implements:
IEquatable<GridLength>
Properties
IsAbsolute
True for a GridUnitType.Pixel track.
Type: bool
IsAuto
True for an GridUnitType.Auto track.
Type: bool
IsStar
True for a GridUnitType.Star track.
Type: bool
Type
How Value is interpreted.
Type: GridUnitType
Value
Points for a pixel track, the weight for a star track, ignored for auto.
Type: double
Methods
Pixels
A fixed track of points points.
| Parameter | Summary |
|---|---|
double points | The fixed size in layout points. |
Returns
GridLength: A new fixed-size grid length configuration.
Stars
A star track with the given weight of the remaining space.
| Parameter | Summary |
|---|---|
double weight | The proportional allocation factor. |
Returns
GridLength: A new proportional grid length configuration.
Fields
Auto
An auto-sized track.
Type: GridLength
Star
A single star track (weight 1).
Type: GridLength
Operators
Implicit GridLength(double)
A fixed track from a point value (so Columns = { 200, GridLength.Star } compiles).
| Parameter | Summary |
|---|---|
double points | The absolute size in layout points. |
Returns
GridLength: A fixed-size grid length.