StandardPrintTaskOptions StandardPrintTaskOptions StandardPrintTaskOptions StandardPrintTaskOptions Class

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

Declaration

public static class StandardPrintTaskOptionspublic static class StandardPrintTaskOptionsPublic Static Class StandardPrintTaskOptions

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 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 summary

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Properties

  • Binding
    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

    Property Value

    • 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 string Bordering { get; }public static string Bordering { get; }Public Static ReadOnly Property Bordering As string

    Property Value

    • string
      string
      string
      string

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

  • Collation
    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

    Property Value

    • 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 string ColorMode { get; }public static string ColorMode { get; }Public Static ReadOnly Property ColorMode As string

    Property Value

    • 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 string Copies { get; }public static string Copies { get; }Public Static ReadOnly Property Copies As string

    Property Value

    • 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 string Duplex { get; }public static string Duplex { get; }Public Static ReadOnly Property Duplex As string

    Property Value

    • 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 string HolePunch { get; }public static string HolePunch { get; }Public Static ReadOnly Property HolePunch As string

    Property Value

    • 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 string InputBin { get; }public static string InputBin { get; }Public Static ReadOnly Property InputBin As string

    Property Value

    • 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 string MediaSize { get; }public static string MediaSize { get; }Public Static ReadOnly Property MediaSize As string

    Property Value

    • 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 string MediaType { get; }public static string MediaType { get; }Public Static ReadOnly Property MediaType As string

    Property Value

    • 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 string NUp { get; }public static string NUp { get; }Public Static ReadOnly Property NUp As string

    Property Value

    • 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 string Orientation { get; }public static string Orientation { get; }Public Static ReadOnly Property Orientation As string

    Property Value

    • 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 string PrintQuality { get; }public static string PrintQuality { get; }Public Static ReadOnly Property PrintQuality As string

    Property Value

    • 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 string Staple { get; }public static string Staple { get; }Public Static ReadOnly Property Staple As string

    Property Value

    • string
      string
      string
      string

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

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.MuseAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Graphics.Printing.dll