共用方式為


ContextMenuService.GetPlacementRectangle(DependencyObject) 方法

定義

取得指定物件之 PlacementRectangle 屬性的值。

public:
 static System::Windows::Rect GetPlacementRectangle(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.Rect GetPlacementRectangle (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetPlacementRectangle : System.Windows.DependencyObject -> System.Windows.Rect
Public Shared Function GetPlacementRectangle (element As DependencyObject) As Rect

參數

element
DependencyObject

要查詢有關 PlacementRectangle 屬性的物件。

傳回

PlacementRectangle 屬性的值。

屬性

適用於