Value property

GridLength.Value property

Gets a Double that represents the value of the GridLength.

Syntax


public double Value { get; }

Property value

Type: System.Double [.NET] | float64 [C++]

A Double that represents the value of the current instance.

Remarks

The meaning of Value for what the GridLength represents is interpreted based on what the GridUnitType value of the structure is.

  • If GridUnitType is Pixel, then Value is a unit measure in pixels. This is typically an integer, through subpixel values are permitted.
  • If GridUnitType is Star, then Value is a factor for the star sizing, which is a weighted distribution technique where a container divides its available space. For example, a Value of 5 should get 5 times as many pixels for its space as does another peer that has a Value of 1. The exact pixel count can't be determined by looking at this structure, that's only known at run-time.
  • If GridUnitType is Auto, then Value is ignored.

Requirements (Windows 10 device family)

Device family

API contract

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Platform.winmd

Assembly

System.Runtime.WindowsRuntime.UI.Xaml.dll

See also

GridLength

 

 

Show:
© 2016 Microsoft