语言

ContextMenuService.GetHorizontalOffset(DependencyObject) 方法

定义

获取指定对象的属性的值 HorizontalOffset 。

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

参数

element
DependencyObject

要查询属性的对象 HorizontalOffset 。

返回

属性的值 HorizontalOffset 。

特性

适用于