共用方式為


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

要設定的值。

適用於