PrintMediaSizeOptionDetails class

Applies to Windows only

Represents the list of media size options.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The PrintMediaSizeOptionDetails class has these types of members:

Methods

The PrintMediaSizeOptionDetails class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
TrySetValue Sets the value for the media size option.

 

Properties

The PrintMediaSizeOptionDetails class has these properties.

PropertyAccess typeDescription

ErrorText

Read/writeGets or sets the string for an error condition.

Items

Read-onlyGets the list of print media size option items.

OptionId

Read-onlyGets the ID for the print media size option.

OptionType

Read-onlyGets the option type for the option for the number of printed copies.

State

Read/writeGets or sets the state of the option for the number of printed copies.

Value

Read-onlyGets or sets the number of copies for a print task.

 

Remarks

Here is a JavaScript code snippet that shows how to retrieve the object:


//  Retrieve the advanced Print Task Options
var printDetailedOptions = 
     Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails.getFromPrintTaskOptions(printTask.options);

// get the object
var printMediaSizeOptionDetails = 
     printDetailedOptions.options.lookup(Windows.Graphics.Printing.StandardPrintTaskOptions.mediaSize);

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.Graphics.Printing.OptionDetails
Windows::Graphics::Printing::OptionDetails [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft