Jaa


PrintCustomItemListOptionDetails.TrySetValue(Object) Method

Definition

Sets the value for the item ID or the display name of the custom item.

public:
 virtual bool TrySetValue(Platform::Object ^ value) = TrySetValue;
bool TrySetValue(IInspectable const& value);
public bool TrySetValue(object value);
function trySetValue(value)
Public Function TrySetValue (value As Object) As Boolean

Parameters

value
Object

Platform::Object

IInspectable

Value for the item ID or the display name of the custom item.

Returns

Boolean

bool

Boolean value that indicates TRUE for a successful Get or Set, and FALSE for a failed Get or Set.

Implements

M:Windows.Graphics.Printing.OptionDetails.IPrintOptionDetails.TrySetValue(System.Object) M:Windows.Graphics.Printing.OptionDetails.IPrintOptionDetails.TrySetValue(Platform::Object) M:Windows.Graphics.Printing.OptionDetails.IPrintOptionDetails.TrySetValue(IInspectable)

Remarks

To set the default value for a custom dropdown list of options, set the value explicitly. Otherwise, the adding order will be used.

Applies to