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 属性的值。

属性

适用于