共用方式為


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

要設定的值。

適用於