PrintCustomItemDetails
PrintCustomItemDetails
PrintCustomItemDetails
PrintCustomItemDetails
Class
Definition
Allows apps to add a collection of enumerable options to the app print experience.
public : sealed class PrintCustomItemDetails : IPrintCustomItemDetailspublic sealed class PrintCustomItemDetails : IPrintCustomItemDetailsPublic NotInheritable Class PrintCustomItemDetails Implements IPrintCustomItemDetails// You can use this class in JavaScript.
- 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// You can use this property in JavaScript.
- 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// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The ID of the print task option.