콘텐츠로 이동

GridLength structure

이 콘텐츠는 아직 번역되지 않았습니다.

Represents the length of a grid row or column: fixed, auto or star.

Guide: C# Markup guide

public struct GridLength
name description
GridLength(…) Initializes a length with a value and unit type; the unit defaults to Pixel.
static Auto { get; } Gets the auto length (size to content).
static Star { get; } Gets the 1* star length.
static Pixels(…) Fixed length in DIPs.
static Stars(…) Star sizing with specified value.
GridUnitType { get; } Gets the unit type.
IsAbsolute { get; } Gets whether this is a fixed length in DIPs.
IsAuto { get; } Gets whether this is Auto sizing.
IsStar { get; } Gets whether this is Star sizing.
Value { get; } Gets the numeric value: the length in DIPs or the star weight.
implicit operator Converts a double to a fixed length in DIPs.