Share via


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.

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

double

The initial Left.

top
Double

double

The initial Top.

right
Double

double

The initial Right.

bottom
Double

double

The initial Bottom.

Returns

The created Thickness.

Applies to