PrintCustomItemDetails PrintCustomItemDetails PrintCustomItemDetails PrintCustomItemDetails Class

Definition

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

public : sealed class PrintCustomItemDetails : IPrintCustomItemDetails
public sealed class PrintCustomItemDetails : IPrintCustomItemDetails
Public NotInheritable Class PrintCustomItemDetails Implements IPrintCustomItemDetails
// 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

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; 

Properties

ItemDisplayName ItemDisplayName ItemDisplayName ItemDisplayName

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

public : Platform::String ItemDisplayName { get; set; }
public string ItemDisplayName { get; set; }
Public ReadWrite Property ItemDisplayName As string
var string = printCustomItemDetails.itemDisplayName;
printCustomItemDetails.itemDisplayName = string;
Value
Platform::String string string string

The display name of the option item.

ItemId ItemId ItemId ItemId

Gets the ID of the custom print task option item.

public : Platform::String ItemId { get; }
public string ItemId { get; }
Public ReadOnly Property ItemId As string
var string = printCustomItemDetails.itemId;
Value
Platform::String string string string

The ID of the print task option.