共用方式為


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 屬性的值。

屬性

適用於