PrintCustomItemDetails class

PrintCustomItemDetails class

Allows apps to add a collection of enumerable options to the app print experience.

Syntax


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

Members

The PrintCustomItemDetails class has these types of members:

Methods

The PrintCustomItemDetails class inherits methods from the Object class (C#/VB/C++).

Properties

The PrintCustomItemDetails class has these properties.

PropertyAccess typeDescription

ItemDisplayName

Read/write

Gets or sets the display name of the custom print task option item.

ItemId

Read-only

Gets the ID of the custom print task option item.

 

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");

// Append the custom option to the current list
printDetailedOptions.displayedoptions.append("PageContent");

// 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"); 

// printCustomItemDetails is available in the Items vector from the 
// PrintCustomItemsListOptionDetails object
var printCustomItemDetails = printCustomItemListOptionDetails.Items; 


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

 

 

Show:
© 2016 Microsoft