PrintCustomItemListOptionDetails.AddItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddItem(String, String) |
Sets the ID or display name of an item in the list of custom print task options. |
AddItem(String, String, String, IRandomAccessStreamWithContentType) |
Sets the item ID, display name, description, or icon in the list of custom print item options. |
AddItem(String, String)
Sets the ID or display name of an item in the list of custom print task options.
public:
virtual void AddItem(Platform::String ^ itemId, Platform::String ^ displayName) = AddItem;
void AddItem(winrt::hstring const& itemId, winrt::hstring const& displayName);
public void AddItem(string itemId, string displayName);
function addItem(itemId, displayName)
Public Sub AddItem (itemId As String, displayName As String)
Parameters
- itemId
-
String
Platform::String
winrt::hstring
The ID of the option item.
- displayName
-
String
Platform::String
winrt::hstring
The display name of the option item.
Applies to
AddItem(String, String, String, IRandomAccessStreamWithContentType)
Sets the item ID, display name, description, or icon in the list of custom print item options.
public:
virtual void AddItem(Platform::String ^ itemId, Platform::String ^ displayName, Platform::String ^ description, IRandomAccessStreamWithContentType ^ icon) = AddItem;
void AddItem(winrt::hstring const& itemId, winrt::hstring const& displayName, winrt::hstring const& description, IRandomAccessStreamWithContentType const& icon);
public void AddItem(string itemId, string displayName, string description, IRandomAccessStreamWithContentType icon);
function addItem(itemId, displayName, description, icon)
Public Sub AddItem (itemId As String, displayName As String, description As String, icon As IRandomAccessStreamWithContentType)
Parameters
- itemId
-
String
Platform::String
winrt::hstring
The ID of the option item.
- displayName
-
String
Platform::String
winrt::hstring
The display name of the option item.
- description
-
String
Platform::String
winrt::hstring
The description of the option item.
The icon used by the option item. The icon needs to be in the SVG file format.
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|