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.HorizontalPageSpacing 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 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
ArgumentException

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

HorizontalPageSpacingProperty

Metadata properties set to true

None

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