GetDock Method

DockPanel.GetDock Method (UIElement)


Gets the value of the Dock attached property for a specified UIElement.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Shared Function GetDock (
	element As UIElement
) As Dock


Type: System.Windows.UIElement

The element from which the property value is read.

Return Value

Type: System.Windows.Controls.Dock

The Dock property value for the element.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft