Thickness.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
Implicit(Double to Thickness) |
Implicit cast operator from System.Double. |
Implicit(Size to Thickness) |
Implicit(Double to Thickness)
Implicit cast operator from System.Double.
public static implicit operator Xamarin.Forms.Thickness (double uniformSize);
static member op_Implicit : double -> Xamarin.Forms.Thickness
Parameters
- uniformSize
- System.Double
The value for the uniform Thickness.
Returns
A Thickness with an uniform size.
Remarks
Application developers should bear in mind that HorizontalThickness and VerticalThickness are the sums of their components, so a Thickness created from a uniformSize
of, for instance, 1.0, will have HorizontalThickness of 2.0.
Applies to
Implicit(Size to Thickness)
public static implicit operator Xamarin.Forms.Thickness (Xamarin.Forms.Size size);
static member op_Implicit : Xamarin.Forms.Size -> Xamarin.Forms.Thickness
Parameters
Returns
Remarks
The Thickness's Left and Right are both set equal to the size
's Width and the Thickness's Top and Bottom are both set equal to the size
's Height.