VerticalOffset Property

DocumentViewer.VerticalOffset Property


Gets or sets the vertical scroll position.

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

public double VerticalOffset { get; set; }

Property Value

Type: System.Double

The current vertical scroll position offset in . The default is 0.0.GTMT

VerticalOffset must be set with non-negative offset values. Setting a negative value raises an ArgumentException exception.

The vertical offset is measured from the top of the visible content area.

When setting this property in XAML, you cannot use the unit qualifiers (such as in or cm) that are enabled for many other "Height" or "Vertical" properties.

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