PrintCustomItemListOptionDetails class

Applies to Windows only

Represents a list of the custom print task option items.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

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

Members

The PrintCustomItemListOptionDetails class has these types of members:

Methods

The PrintCustomItemListOptionDetails class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
AddItem Sets the ID or display name of an item in the list of custom print task options.
TrySetValue Sets the value for the item ID or the display name of the custom item.

 

Properties

The PrintCustomItemListOptionDetails class has these properties.

PropertyAccess typeDescription

DisplayName

Read/writeGets or sets the display name of an item in the list of custom print task options.

ErrorText

Read/writeGets or sets the string for an error condition.

Items

Read-onlyGets an item from the list of custom print tasks.

OptionId

Read-onlyGets the ID of a custom print task option.

OptionType

Read-onlyGets the option type for a custom print task option.

State

Read/writeGets or sets the state of the list of custom print task option items.

Value

Read-onlyGets or sets the value of the list of custom print tasks.

 

Remarks

Here is a JavaScript code snippet that shows how to retrieve the object:


// Create a new list option
// This code creates a new item list option that will be shown to the user
// pageFormat is an object of type: PrintCustomItemListOptionDetails
var pageFormat = 
     printDetailedOptions.createItemListOption("PageContent", "Pictures");
pageFormat.addItem("PicturesText", "Pictures and text");
pageFormat.addItem("PicturesOnly", "Pictures only");
pageFormat.addItem("TextOnly", "Text only");

// later in your app, when you want to access that list again 
// and don’t have access to the pageFormat variable that was 
// returned when the list was created, you can get it by   
// looking up the same optionId that you used to create the list. 
var printCustomItemListOptionDetails = 
     printDetailedOptions.options.lookup("PageContent");


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

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft. All rights reserved.