Skip to main content
StandardPrintTaskOptions class

Applies to Windows only

Provides access to the canonical names for the options represented by the PrintTaskOptions class. You can use the StandardPrintTaskOptions class to identify print options displayed in the user experience or to retrieve specific options using the PrintTaskOptionDetails class.

Syntax


var standardPrintTaskOptions = Windows.Graphics.Printing.StandardPrintTaskOptions;

public static class StandardPrintTaskOptions

Public NotInheritable Class StandardPrintTaskOptions

public ref class StandardPrintTaskOptions abstract sealed 

Attributes

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

Members

The StandardPrintTaskOptions class has these types of members:

Methods

The StandardPrintTaskOptions class inherits methods from the Object class (C#/VB/C++).

Properties

The StandardPrintTaskOptions class has these properties.

PropertyAccess typeDescription

Binding

Read-onlyGets the canonical name for the binding option of the print task.

Collation

Read-onlyGets the canonical name for collation option of the print task.

ColorMode

Read-onlyGets the canonical name for color mode option of the print task.

Copies

Read-onlyGets the canonical name for the copies option of the print task.

Duplex

Read-onlyGets the canonical name for the duplex option of the print task.

HolePunch

Read-onlyGets the canonical name for the hole punch option of the print task.

InputBin

Read-onlyGets the canonical name for the input bin option of the print task.

MediaSize

Read-onlyGets the canonical name for the media size option of the print task.

MediaType

Read-onlyGets the canonical name for the media type option of the print task.

NUp

Read-onlyGets the canonical name for the NUp option of the print task.

Orientation

Read-onlyGets the canonical name for the orientation option of the print task.

PrintQuality

Read-onlyGets the canonical name for the print quality option of the print task.

Staple

Read-onlyGets the canonical name for the staple option of the print task.

 

Remarks

The StandardPrintTaskOptions object provides the canonical names for the common print task options used in the PrintTaskOptions object. These names may be used to add or remove items from the PrintTaskOptions.DisplayedOptions list to indicate the options that appear in the print window. These names may also be used with the PrintTaskOptionDetails object to locate the standard options in the list of options. These names are considered to be unique, and any attempt to create options of the same name will be rejected.

Here is a JavaScript code snippet that you could use, for example, to append the standard print task options to be displayed in the UI:


// Choose the printer options to be shown.
// The order in which the options are appended determines the order in which they appear in the UI
printTask.options.displayedOptions.clear();
printTask.options.displayedOptions.append(Windows.Graphics.Printing.StandardPrintTaskOptions.copies);
printTask.options.displayedOptions.append(Windows.Graphics.Printing.StandardPrintTaskOptions.mediaSize);
printTask.options.displayedOptions.append(Windows.Graphics.Printing.StandardPrintTaskOptions.orientation);
printTask.options.displayedOptions.append(Windows.Graphics.Printing.StandardPrintTaskOptions.duplex);

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
Windows::Graphics::Printing [C++]

Metadata

Windows.winmd

See also

PrintTaskOptions
PrintTaskOptionDetails