Share via


Thickness.Implicit Operator

Definition

Overloads

Implicit(Double to Thickness)

Implicit cast operator from System.Double.

Implicit(Size to Thickness)

Converts a Size into a 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)

Converts a Size into a Thickness.

public static implicit operator Xamarin.Forms.Thickness (Xamarin.Forms.Size size);
static member op_Implicit : Xamarin.Forms.Size -> Xamarin.Forms.Thickness

Parameters

size
Size

A Size to convert to a Thickness

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.

Applies to