PrintCopiesOptionDetails class

PrintCopiesOptionDetails class

Represents the option for the number of printed copies.

Syntax


public sealed class PrintCopiesOptionDetails : IPrintOptionDetails,
    IPrintNumberOptionDetails

Members

The PrintCopiesOptionDetails class has these types of members:

Methods

The PrintCopiesOptionDetails 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 print copies option.

 

Properties

The PrintCopiesOptionDetails class has these properties.

PropertyAccess typeDescription

ErrorText

Read/write

Gets or sets the string for an error condition.

MaxValue

Read-only

Gets the value for the maximum number of printed copies allowed.

MinValue

Read-only

Gets the value for the minimum number of printed copies allowed.

OptionId

Read-only

Gets the ID for the option for the number of printed copies.

OptionType

Read-only

Gets the option type for the option for the number of printed copies.

State

Read/write

Gets or sets the state of the option for the number of printed copies.

Value

Read-only

Gets 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 printCopiesOptionDetails = 
     printDetailedOptions.options.lookup(Windows.Graphics.Printing.StandardPrintTaskOptions.copies);

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

Object
IPrintOptionDetails
IPrintNumberOptionDetails

 

 

Show:
© 2016 Microsoft