RectHelper.GetLeft(Rect) Method

Definition

Gets a "Left" value for the specified Rect. So long as Width is positive, "Left" is evaluated as X. C# and Microsoft Visual Basic code should use Rect.Left instead.

Equivalent WinUI method: Microsoft.UI.Xaml.RectHelper.GetLeft.

public:
 static float GetLeft(Rect target);
 static float GetLeft(Rect const& target);
public static float GetLeft(Rect target);
function getLeft(target)
Public Shared Function GetLeft (target As Rect) As Single

Parameters

target
Rect

The Rect to evaluate.

Returns

Single

float

The evaluated "Left" value.

Applies to