ContextMenuService.GetVerticalOffset(DependencyObject) 方法

定義

取得指定物件之 VerticalOffset 屬性的值。

public:
 static double GetVerticalOffset(System::Windows::DependencyObject ^ element);
[System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))]
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static double GetVerticalOffset (System.Windows.DependencyObject element);
[<System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))>]
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetVerticalOffset : System.Windows.DependencyObject -> double
Public Shared Function GetVerticalOffset (element As DependencyObject) As Double

參數

element
DependencyObject

要查詢有關 VerticalOffset 屬性的物件。

傳回

Double

VerticalOffset 屬性的值。

屬性

適用於