共用方式為


ContextMenuService.SetPlacement(DependencyObject, PlacementMode) 方法

定義

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

public:
 static void SetPlacement(System::Windows::DependencyObject ^ element, System::Windows::Controls::Primitives::PlacementMode value);
public static void SetPlacement (System.Windows.DependencyObject element, System.Windows.Controls.Primitives.PlacementMode value);
static member SetPlacement : System.Windows.DependencyObject * System.Windows.Controls.Primitives.PlacementMode -> unit
Public Shared Sub SetPlacement (element As DependencyObject, value As PlacementMode)

參數

element
DependencyObject

要設定值的物件。

value
PlacementMode

要設定的值。

適用於