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 属性的值的对象。

返回

Rect

PlacementRectangle 属性的值。

属性

适用于