ScrollViewer.GetHorizontalScrollBarVisibility Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the value of the HorizontalScrollBarVisibility dependency property from a specified element.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Shared Function GetHorizontalScrollBarVisibility ( _ element As DependencyObject _ ) As ScrollBarVisibility
Parameters
- element
- Type: System.Windows.DependencyObject
The element from which the property value is read.
Return Value
Type: System.Windows.Controls.ScrollBarVisibilityThe value of the HorizontalScrollBarVisibility dependency property.
| Exception | Condition |
|---|---|
| ArgumentNullException | element is Nothing. |
Show: