PrintCustomItemDetails PrintCustomItemDetails PrintCustomItemDetails PrintCustomItemDetails Class

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

Syntax

Declaration

public sealed class PrintCustomItemDetailspublic sealed class PrintCustomItemDetailsPublic NotInheritable Class PrintCustomItemDetails

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 summary

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

Gets the ID of the custom print task option item.

Properties

  • ItemDisplayName
    ItemDisplayName
    ItemDisplayName
    ItemDisplayName

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

    public string ItemDisplayName { get; set; }public string ItemDisplayName { get; set; }Public ReadWrite Property ItemDisplayName As string

    Property Value

    • 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 string ItemId { get; }public string ItemId { get; }Public ReadOnly Property ItemId As string

    Property Value

    • string
      string
      string
      string

      The ID of the print task option.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Graphics.Printing.OptionDetails.dll