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

要设置的值。

适用于