Standard​Print​Task​Options Standard​Print​Task​Options Standard​Print​Task​Options Class

Definition

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.

public static class StandardPrintTaskOptionspublic static class StandardPrintTaskOptionsPublic Static Class StandardPrintTaskOptions
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The StandardPrintTaskOptions class 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);

Properties

Binding Binding Binding

Gets the canonical name for the binding option of the print task.

public static string Binding { get; }public static string Binding { get; }Public Static ReadOnly Property Binding As string
Value
string string string

The canonical name for the binding option of the print task.

Attributes

Bordering Bordering Bordering

Gets the canonical name of the bordering option for the print task.

public static string Bordering { get; }public static string Bordering { get; }Public Static ReadOnly Property Bordering As string
Value
string string string

The canonical name of the bordering option for the print task.

Attributes

Collation Collation Collation

Gets the canonical name for collation option of the print task.

public static string Collation { get; }public static string Collation { get; }Public Static ReadOnly Property Collation As string
Value
string string string

The canonical name for collation option of the print task.

Attributes

ColorMode ColorMode ColorMode

Gets the canonical name for color mode option of the print task.

public static string ColorMode { get; }public static string ColorMode { get; }Public Static ReadOnly Property ColorMode As string
Value
string string string

The canonical name for color mode option of the print task.

Attributes

Copies Copies Copies

Gets the canonical name for the copies option of the print task.

public static string Copies { get; }public static string Copies { get; }Public Static ReadOnly Property Copies As string
Value
string string string

The canonical name for the copies option of the print task.

Attributes

Duplex Duplex Duplex

Gets the canonical name for the duplex option of the print task.

public static string Duplex { get; }public static string Duplex { get; }Public Static ReadOnly Property Duplex As string
Value
string string string

The canonical name for the duplex option of the print task.

Attributes

HolePunch HolePunch HolePunch

Gets the canonical name for the hole punch option of the print task.

public static string HolePunch { get; }public static string HolePunch { get; }Public Static ReadOnly Property HolePunch As string
Value
string string string

The canonical name for the hole punch option of the print task.

Attributes

InputBin InputBin InputBin

Gets the canonical name for the input bin option of the print task.

public static string InputBin { get; }public static string InputBin { get; }Public Static ReadOnly Property InputBin As string
Value
string string string

The canonical name for the input bin option of the print task.

Attributes

MediaSize MediaSize MediaSize

Gets the canonical name for the media size option of the print task.

public static string MediaSize { get; }public static string MediaSize { get; }Public Static ReadOnly Property MediaSize As string
Value
string string string

The canonical name for the media size option of the print task.

Attributes

MediaType MediaType MediaType

Gets the canonical name for the media type option of the print task.

public static string MediaType { get; }public static string MediaType { get; }Public Static ReadOnly Property MediaType As string
Value
string string string

The canonical name for the media type option of the print task.

Attributes

NUp NUp NUp

Gets the canonical name for the NUp option of the print task.

public static string NUp { get; }public static string NUp { get; }Public Static ReadOnly Property NUp As string
Value
string string string

The canonical name for the NUp option of the print task.

Attributes

Orientation Orientation Orientation

Gets the canonical name for the orientation option of the print task.

public static string Orientation { get; }public static string Orientation { get; }Public Static ReadOnly Property Orientation As string
Value
string string string

The canonical name for the orientation option of the print task.

Attributes

PrintQuality PrintQuality PrintQuality

Gets the canonical name for the print quality option of the print task.

public static string PrintQuality { get; }public static string PrintQuality { get; }Public Static ReadOnly Property PrintQuality As string
Value
string string string

The canonical name for the print quality option of the print task.

Attributes

Staple Staple Staple

Gets the canonical name for the staple option of the print task.

public static string Staple { get; }public static string Staple { get; }Public Static ReadOnly Property Staple As string
Value
string string string

The canonical name for the staple option of the print task.

Attributes