PrintCustomItemDetails PrintCustomItemDetails PrintCustomItemDetails PrintCustomItemDetails PrintCustomItemDetails Class

Definition

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

public : sealed class PrintCustomItemDetails
struct winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomItemDetails
public sealed class PrintCustomItemDetails
Public NotInheritable Class PrintCustomItemDetails
// 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 ItemDisplayName

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

ItemId ItemId ItemId ItemId ItemId

Gets the ID of the custom print task option item.