Udostępnij za pośrednictwem


RectHelper.GetTop(Rect) Method

Definition

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

public:
 static float GetTop(Rect target);
 static float GetTop(Rect const& 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

float

The evaluated "Top" value.

Applies to