Share via


PrintTicketFeature Class

Definition

Represents a modifiable feature of the print ticket. A feature is a device capability that has an enumerable list of settings, unlike a parameter which can be set to values within a range.

public ref class PrintTicketFeature sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PrintTicketFeature final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PrintTicketFeature
Public NotInheritable Class PrintTicketFeature
Inheritance
Object Platform::Object IInspectable PrintTicketFeature
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Properties

DisplayName

Gets the friendly name of the print ticket feature.

Name

Gets the canonical name of the print ticket feature.

Options

Gets a list of print ticket options available for this feature.

SelectionType

Gets the selection type for this print feature.

XmlNamespace

Gets the XML namespace that this print feature belongs to.

XmlNode

Gets the XML node that this print feature belongs to.

Methods

GetOption(String, String)

Gets the specified print feature option object.

GetSelectedOption()

Gets the option that is currently selected for this print feature.

SetSelectedOption(PrintTicketOption)

Sets the given option as the selected option for this print feature.

Applies to

See also

  • <xref:Windows.Graphics.Printing.PrintTicket.PrintTicketOption%0a%5bIPrintSchemaFeature+interface%5d(%2fwindows-hardware%2fdrivers%2fddi%2fcontent%2fprinterextension%2fnn-printerextension-iprintschemafeature)>