PrintTicket::PageMediaType Property
Gets or sets a value indicating what sort of paper or media the printer uses for the print job.
Assembly: ReachFramework (in ReachFramework.dll)
public: property Nullable<PageMediaType> PageMediaType { Nullable<PageMediaType> get (); void set (Nullable<PageMediaType> value); }
Property Value
Type: System::Nullable<PageMediaType>A PageMediaType value specifying the print media, such as card stock, label, plain, or photographic.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Calling code has attempted to set the property to a value that is not in the PageMediaType enumeration. |
A nullptr value for this property means that this feature setting is not specified. Also, when the value is nullptr, 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 PageMediaType keyword.
You can test for the options that the printer supports by using the PageMediaTypeCapability 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.