ThicknessHelper.FromLengths(Double, Double, Double, Double) Method

Definition

Creates a Thickness value based on element values. C# and Microsoft Visual Basic code should use the Thickness(Double,Double,Double,Double) constructor instead.

Equivalent WinUI method: Microsoft.UI.Xaml.ThicknessHelper.FromLengths.

public:
 static Thickness FromLengths(double left, double top, double right, double bottom);
 static Thickness FromLengths(double const& left, double const& top, double const& right, double const& bottom);
public static Thickness FromLengths(double left, double top, double right, double bottom);
function fromLengths(left, top, right, bottom)
Public Shared Function FromLengths (left As Double, top As Double, right As Double, bottom As Double) As Thickness

Parameters

left
Double

The initial Left.

top
Double

The initial Top.

right
Double

The initial Right.

bottom
Double

The initial Bottom.

Returns

Thickness

The created Thickness.

Applies to