FixedPage.GetTop(UIElement) 메서드

정의

요소의 위쪽과 부모 Canvas의 위쪽 사이의 거리를 반환합니다.

public:
 static double GetTop(System::Windows::UIElement ^ element);
[System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
[System.Windows.AttachedPropertyBrowsableForChildren]
public static double GetTop (System.Windows.UIElement element);
[System.Windows.AttachedPropertyBrowsableForChildren]
[System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public static double GetTop (System.Windows.UIElement element);
[<System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>]
[<System.Windows.AttachedPropertyBrowsableForChildren>]
static member GetTop : System.Windows.UIElement -> double
[<System.Windows.AttachedPropertyBrowsableForChildren>]
[<System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>]
static member GetTop : System.Windows.UIElement -> double
Public Shared Function GetTop (element As UIElement) As Double

매개 변수

element
UIElement

위쪽 오프셋을 가져올 요소입니다.

반환

요소의 위쪽과 부모 캔버스의 위쪽 사이의 거리입니다.

특성

설명

위쪽 오프셋이 설정되지 않은 경우 를 GetTop 반환합니다 NaN.

적용 대상

추가 정보