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:
property double HorizontalPageSpacing {
	double get();
	void set(double value);
}

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: