DocumentViewer.VerticalOffset Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 device independent pixels. The default is 0.0.

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
Show: