FixedPage.GetTop(UIElement) Yöntem

Tanım

Öğenin üstü ile üst Canvasöğesinin üst öğesi arasındaki uzaklığı döndürür.

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

Parametreler

element
UIElement

Üst uzaklığı almak için öğesi.

Döndürülenler

Öğenin üstü ile üst tuvalinin üst kısmı arasındaki uzaklık.

Öznitelikler

Açıklamalar

Üst uzaklık ayarlanmamışsa döndürür GetTopNaN.

Şunlara uygulanır

Ayrıca bkz.