HorizontalOffset Property

DocumentViewer.HorizontalOffset Property


Gets or sets the horizontal scroll position.

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

public double HorizontalOffset { get; set; }

Property Value

Type: System.Double

The current horizontal scroll position specified in device independent pixels. The initial default is 0.0.

Exception Condition

The value specified to set is negative.

Setting the HorizontalOffset property causes the DocumentViewer control to scroll to the specified horizontal offset.

The horizontal offset is measured from the left edge 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 "Width" or "Horizontal" properties.

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