GridLength Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GridLength(Double) |
Initializes a new GridLength instance that represents an absolute length. |
GridLength(Double, GridUnitType) |
Initializes a new GridLength instance with the specified value and unit type. |
GridLength(Double)
- Source:
- GridLength.cs
- Source:
- GridLength.cs
- Source:
- GridLength.cs
Initializes a new GridLength instance that represents an absolute length.
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 absolute size.
Exceptions
Thrown if value
is less than zero or not a number.
Remarks
Equivalent to new GridLength(value, GridUnitType.Absolute).
Applies to
GridLength(Double, GridUnitType)
- Source:
- GridLength.cs
- Source:
- GridLength.cs
- Source:
- GridLength.cs
Initializes a new GridLength instance with the specified value and unit type.
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 or weight.
- type
- GridUnitType
The unit type (Absolute, Star, or Auto).
Exceptions
Thrown if type
is not a valid GridUnitType.