Feature
Inheritance: java.lang.Object, com.aspose.xps.metadata.PrintTicketElement, com.aspose.xps.metadata.CompositePrintTicketElement
All Implemented Interfaces: com.aspose.xps.metadata.IPrintTicketItem, com.aspose.xps.metadata.IFeatureItem
public class Feature extends CompositePrintTicketElement implements IPrintTicketItem, IFeatureItem
The class that incapsulates a common Print Schema feature. The base class for all schema-defined features. A ``` Feature ``` element contains a complete list of the ``` Option ``` and ``` Property ``` elements that fully describe a device attribute, job formatting setting, or other relevant characteristic. https://docs.microsoft.com/en-us/windows/win32/printdocs/feature
Constructors
Constructor | Description |
---|---|
Feature(String name, Option option, IFeatureItem[] items) | Creates a new PrintTicket feature instance. |
Feature(String name, Feature feature, IFeatureItem[] items) | Creates a new PrintTicket feature instance. |
Methods
Method | Description |
---|---|
add(IFeatureItem[] items) | Adds a list of items to the end of this feature’s item list. |
Feature(String name, Option option, IFeatureItem[] items)
public Feature(String name, Option option, IFeatureItem[] items)
Creates a new PrintTicket feature instance.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | A feature name. |
option | Option | Required ``` Option ``` instance. |
items | com.aspose.xps.metadata.IFeatureItem[] | An arbitrary array of ``` IFeatureItem ``` instances. Each one must be a ``` Feature ```, an ``` Option ``` or a ``` Property ``` instance. |
Feature(String name, Feature feature, IFeatureItem[] items)
public Feature(String name, Feature feature, IFeatureItem[] items)
Creates a new PrintTicket feature instance.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Feature name. |
feature | Feature | Required ``` Feature ``` instance. |
items | com.aspose.xps.metadata.IFeatureItem[] | An arbitrary array of ``` Property ``` instances. Each one must be a ``` Feature ```, an ``` Option ``` or a ``` Property ``` instance. |
add(IFeatureItem[] items)
public void add(IFeatureItem[] items)
Adds a list of items to the end of this feature’s item list. Each one must be a ``` Feature ```, an ``` Option ``` or a ``` Property ``` instance.
Parameters:
Parameter | Type | Description |
---|---|---|
items | com.aspose.xps.metadata.IFeatureItem[] | List of items to add. |