PrintCustomTextOptionDetails class

Applies to Windows only

Represents a custom print task option.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The PrintCustomTextOptionDetails class has these types of members:

Methods

The PrintCustomTextOptionDetails class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
TrySetValue Sets the value for the custom print task.

 

Properties

The PrintCustomTextOptionDetails class has these properties.

PropertyAccess typeDescription

DisplayName

Read/writeGets or sets the display name of the custom print task option.

ErrorText

Read/writeGets or sets the string for an error condition.

MaxCharacters

Read/writeGets or sets the maximum number of characters for the display name of the custom print task option.

OptionId

Read-onlyGets the ID of the custom print task option.

OptionType

Read-onlyGets the option type for the custom print task option.

State

Read/writeGets or sets the state of a custom print task option.

Value

Read-onlyGets or sets the value of a custom print task option.

 

Remarks

Here is a JavaScript code snippet that shows how to retrieve the object:


// This code creates a new custom text option and returns a 
// customTextOption is an object of type: PrintCustomTextOptionDetails 
var customTextOption =
      printDetailedOptions.createTextOption("myCustomText", "Custom Options");

// later in your app, when you want to access the custom text option created above,
// but you don’t have access to the customTextOption variable that was returned 
// when it was created, you can get it by looking up the same optionId that 
// you used to create it. 
var printCustomTextOptionDetails =
      printDetailedOptions.options.lookup("myCustomText");


Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.Graphics.Printing.OptionDetails
Windows::Graphics::Printing::OptionDetails [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft