共用方式為


ContextMenuService.SetVerticalOffset(DependencyObject, Double) 方法

定義

設定所指定物件之 VerticalOffset 屬性的值。

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

參數

element
DependencyObject

要設定值的物件。

value
Double

要設定的值。

適用於