GridLength.Implicit Operator
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
| Name | Description |
|---|---|
| Implicit(Double to GridLength) |
Converts a double to a GridLength using Absolute units. |
| Implicit(String to GridLength) |
Converts a string to a GridLength using the type converter. |
Implicit(Double to GridLength)
- Source:
- GridLength.cs
- Source:
- GridLength.cs
- Source:
- GridLength.cs
- Source:
- GridLength.cs
Converts a double to a GridLength using Absolute units.
public:
static operator Microsoft::Maui::GridLength(double absoluteValue);
public static implicit operator Microsoft.Maui.GridLength(double absoluteValue);
static member op_Implicit : double -> Microsoft.Maui.GridLength
Public Shared Widening Operator CType (absoluteValue As Double) As GridLength
Parameters
- absoluteValue
- Double
The absolute size.
Returns
A GridLength instance representing an absolute length.
Applies to
Implicit(String to GridLength)
- Source:
- GridLength.cs
Converts a string to a GridLength using the type converter.
public:
static operator Microsoft::Maui::GridLength(System::String ^ value);
public static implicit operator Microsoft.Maui.GridLength(string value);
static member op_Implicit : string -> Microsoft.Maui.GridLength
Public Shared Widening Operator CType (value As String) As GridLength
Parameters
- value
- String
The string value representing a GridLength ("auto", "", "2", or a number).
Returns
A GridLength instance parsed from the string.
Exceptions
Thrown if value is null.
Thrown if value is not a valid GridLength format.