ContextMenuService.SetPlacementRectangle(DependencyObject, Rect) 方法

定义

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

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

参数

element
DependencyObject

要对其设置值的对象。

value
Rect

要设置的值。

适用于