GridLength GridLength GridLength GridLength Constructors

Definition

Overloads

GridLength(Double) GridLength(Double) GridLength(Double) GridLength(Double)

Initializes a new instance of the GridLength structure using the specified absolute value in pixels.

GridLength(Double, GridUnitType) GridLength(Double, GridUnitType) GridLength(Double, GridUnitType) GridLength(Double, GridUnitType)

Initializes a new instance of the GridLength structure and specifies what kind of value it holds.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) GridLength struct. For more information, see GridLength in the UWP API reference.

GridLength(Double) GridLength(Double) GridLength(Double) GridLength(Double)

Initializes a new instance of the GridLength structure using the specified absolute value in pixels.

public:
 GridLength(double pixels);
public GridLength (double pixels);
new Windows.UI.Xaml.GridLength : double -> Windows.UI.Xaml.GridLength
Public Sub New (pixels As Double)

Parameters

pixels
Double Double Double Double

The absolute count of pixels to establish as the value.

GridLength(Double, GridUnitType) GridLength(Double, GridUnitType) GridLength(Double, GridUnitType) GridLength(Double, GridUnitType)

Initializes a new instance of the GridLength structure and specifies what kind of value it holds.

public:
 GridLength(double value, Windows::UI::Xaml::GridUnitType type);
public GridLength (double value, Windows.UI.Xaml.GridUnitType type);
new Windows.UI.Xaml.GridLength : double * Windows.UI.Xaml.GridUnitType -> Windows.UI.Xaml.GridLength
Public Sub New (value As Double, type As GridUnitType)

Parameters

value
Double Double Double Double

The initial value of this instance of GridLength.

Exceptions

value is less than 0 or is not a number.

-or-

type is not a valid GridUnitType.

Applies to