RectHelper.GetTop(Rect) Method

Definition

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

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

public:
 static float GetTop(Rect target);
 static float GetTop(Rect target);
public static float GetTop(Rect target);
function getTop(target)
Public Shared Function GetTop (target As Rect) As Single

Parameters

target
Rect

The Rect to evaluate.

Returns

Single

The evaluated "Top" value.

Applies to