DockPanel.GetDock(UIElement) 方法

定義

取得所指定 UIElementDock 附加屬性值。

public:
 static System::Windows::Controls::Dock GetDock(System::Windows::UIElement ^ element);
[System.Windows.AttachedPropertyBrowsableForChildren]
public static System.Windows.Controls.Dock GetDock (System.Windows.UIElement element);
[<System.Windows.AttachedPropertyBrowsableForChildren>]
static member GetDock : System.Windows.UIElement -> System.Windows.Controls.Dock
Public Shared Function GetDock (element As UIElement) As Dock

參數

element
UIElement

要從中讀取屬性值的項目。

傳回

Dock

項目的 Dock 屬性值。

屬性

適用於

另請參閱