ContextMenuService.GetPlacement(DependencyObject) 方法

定义

获取指定对象的 Placement 属性的值。

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

参数

element
DependencyObject

要查询其 Placement 属性的值的对象。

返回

PlacementMode

Placement 属性的值。

属性

适用于