ContextMenuService.SetHorizontalOffset(DependencyObject, Double) 方法

定义

设置指定对象的 HorizontalOffset 属性的值。

public:
 static void SetHorizontalOffset(System::Windows::DependencyObject ^ element, double value);
public static void SetHorizontalOffset (System.Windows.DependencyObject element, double value);
static member SetHorizontalOffset : System.Windows.DependencyObject * double -> unit
Public Shared Sub SetHorizontalOffset (element As DependencyObject, value As Double)

参数

element
DependencyObject

要对其设置值的对象。

value
Double

要设置的值。

适用于