PrintTicket::PageMediaSize Property
Gets or sets the page size for the paper (or other media) that a printer uses for a print job.
Assembly: ReachFramework (in ReachFramework.dll)
public: property PageMediaSize^ PageMediaSize { PageMediaSize^ get(); void set(PageMediaSize^ value); }
Property Value
Type: System.Printing::PageMediaSize^A PageMediaSize object that represents the page size by using a name, dimensions, or both.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Calling code has attempted to set the property with a PageMediaSize object that has at least one null property. - or - Calling code has attempted to set the property with a PageMediaSize object whose PageMediaSizeName property is set to a value that is not in the PageMediaSizeName enumeration. - or - Calling code has attempted to set the property with a PageMediaSize object whose Width or Height property is set to a value less than 1. |
This property corresponds to the Print Schema's PageMediaSize keyword.
You can test for the options that the printer supports by using the PageMediaSizeCapability property.
Available since 3.0