Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Identifier field

VerticalOffsetProperty

Metadata properties set to true

BindsTwoWayByDefault

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft