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::PageMediaSizeA 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 nullptr 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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.