语言

DockPanel.GetDock(UIElement) 方法

定义

获取指定Dock属性的UIElement附加属性的值。

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

特性

适用于

另请参阅