StandardPrintTaskOptions StandardPrintTaskOptions StandardPrintTaskOptions StandardPrintTaskOptions 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 StandardPrintTaskOptions
public static class StandardPrintTaskOptions
Public Static Class StandardPrintTaskOptions
// This class does not provide a public constructor.
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 Binding

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

public : static Platform::String Binding { get; }
public static string Binding { get; }
Public Static ReadOnly Property Binding As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.binding;
Value
Platform::String string string string

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

Bordering Bordering Bordering Bordering

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

public : static Platform::String Bordering { get; }
public static string Bordering { get; }
Public Static ReadOnly Property Bordering As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.bordering;
Value
Platform::String string string string

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

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Collation Collation Collation Collation

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

public : static Platform::String Collation { get; }
public static string Collation { get; }
Public Static ReadOnly Property Collation As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.collation;
Value
Platform::String string string string

The canonical name for collation option of the print task.

ColorMode ColorMode ColorMode ColorMode

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

public : static Platform::String ColorMode { get; }
public static string ColorMode { get; }
Public Static ReadOnly Property ColorMode As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.colorMode;
Value
Platform::String string string string

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

Copies Copies Copies Copies

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

public : static Platform::String Copies { get; }
public static string Copies { get; }
Public Static ReadOnly Property Copies As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.copies;
Value
Platform::String string string string

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

Duplex Duplex Duplex Duplex

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

public : static Platform::String Duplex { get; }
public static string Duplex { get; }
Public Static ReadOnly Property Duplex As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.duplex;
Value
Platform::String string string string

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

HolePunch HolePunch HolePunch HolePunch

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

public : static Platform::String HolePunch { get; }
public static string HolePunch { get; }
Public Static ReadOnly Property HolePunch As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.holePunch;
Value
Platform::String string string string

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

InputBin InputBin InputBin InputBin

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

public : static Platform::String InputBin { get; }
public static string InputBin { get; }
Public Static ReadOnly Property InputBin As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.inputBin;
Value
Platform::String string string string

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

MediaSize MediaSize MediaSize MediaSize

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

public : static Platform::String MediaSize { get; }
public static string MediaSize { get; }
Public Static ReadOnly Property MediaSize As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.mediaSize;
Value
Platform::String string string string

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

MediaType MediaType MediaType MediaType

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

public : static Platform::String MediaType { get; }
public static string MediaType { get; }
Public Static ReadOnly Property MediaType As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.mediaType;
Value
Platform::String string string string

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

NUp NUp NUp NUp

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

public : static Platform::String NUp { get; }
public static string NUp { get; }
Public Static ReadOnly Property NUp As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.nUp;
Value
Platform::String string string string

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

Orientation Orientation Orientation Orientation

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

public : static Platform::String Orientation { get; }
public static string Orientation { get; }
Public Static ReadOnly Property Orientation As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.orientation;
Value
Platform::String string string string

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

PrintQuality PrintQuality PrintQuality PrintQuality

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

public : static Platform::String PrintQuality { get; }
public static string PrintQuality { get; }
Public Static ReadOnly Property PrintQuality As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.printQuality;
Value
Platform::String string string string

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

Staple Staple Staple Staple

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

public : static Platform::String Staple { get; }
public static string Staple { get; }
Public Static ReadOnly Property Staple As string
var string = Windows.Graphics.Printing.StandardPrintTaskOptions.staple;
Value
Platform::String string string string

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