DocumentViewer.HorizontalPageSpacing Property


Gets or sets the horizontal space between pages.

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

public double HorizontalPageSpacing { get; set; }

Property Value

Type: System.Double

The horizontal space between displayed pages specified in device independent pixels. The default is 10.0.

Exception Condition

The value specified to set is negative.

Setting the HorizontalPageSpacing property adjusts the horizontal spacing between pages.

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.

Identifier field


Metadata properties set to true


.NET Framework
Available since 3.0
Return to top