GridLength Constructors

Definition

Overloads

GridLength(Double)

Initializes a new Absolute GridLength.

GridLength(Double, GridUnitType)

Initializes a new GridLength.

GridLength(Double)

Source:
GridLength.cs
Source:
GridLength.cs

Initializes a new Absolute GridLength.

public:
 GridLength(double value);
public GridLength (double value);
new Microsoft.Maui.GridLength : double -> Microsoft.Maui.GridLength
Public Sub New (value As Double)

Parameters

value
Double

The value of the new grid length.

Remarks

This is striclty equivalent to new GridLength (value, GridUnitType.Absolute).

Applies to

GridLength(Double, GridUnitType)

Source:
GridLength.cs
Source:
GridLength.cs

Initializes a new GridLength.

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

Parameters

value
Double

The size of the GridLength.

type
GridUnitType

The GridUnitType (Auto, Star, Absolute) of the GridLength.

Applies to