PrintTicket::PageOrientation Property

 

Gets or sets a value indicating how the page content is oriented for printing.

Namespace:   System.Printing
Assembly:  ReachFramework (in ReachFramework.dll)

public:
property Nullable<PageOrientation> PageOrientation {
	Nullable<PageOrientation> get();
	void set(Nullable<PageOrientation> value);
}

Property Value

Type: System::Nullable<PageOrientation>

A PageOrientation value specifying how page content is oriented, for example, Landscape or ReversePortrait.

Exception Condition
ArgumentOutOfRangeException

Calling code has attempted to set the property to a value that is not in the PageOrientation enumeration.

A null value for this property means that this feature setting is not specified. Also, when the value is null, the XML versions of the PrintTicket (see SaveTo and GetXmlStream) will not contain any markup for this feature.

This property corresponds to the Print Schema's PageOrientation keyword.

You can test for the options that the printer supports by using the PageOrientationCapability property.

The following example shows how to use this property to configure a print job.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: