Option
Inheritance: java.lang.Object, com.aspose.xps.metadata.PrintTicketElement, com.aspose.xps.metadata.CompositePrintTicketElement
All Implemented Interfaces: com.aspose.xps.metadata.IFeatureItem
public class Option extends CompositePrintTicketElement implements IFeatureItem
The class that implements a common PrintTicket Option . The base class for all schema-defined options. An Option element contains all of the Property and ScoredProperty elements associated with this option. https://docs.microsoft.com/en-us/windows/win32/printdocs/option
Constructors
Constructor | Description |
---|---|
Option(String name, IOptionItem[] items) | Creates a new PrintTicket option instance. |
Option(IOptionItem[] items) | Creates a new PrintTicket option instance. |
Option(Option option) | Creates a clone option instance. |
Methods
Method | Description |
---|---|
add(IOptionItem[] items) | Adds a list of items to the end of this option’s item list. |
equals(Object arg0) | |
getClass() | |
getName() | Gets the element name. |
hashCode() | |
notify() | |
notifyAll() | |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
Option(String name, IOptionItem[] items)
public Option(String name, IOptionItem[] items)
Creates a new PrintTicket option instance.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | An arbitrary option name. |
items | IOptionItem[] | An arbitrary array of IOptionItem instance. Each one must be a ScoredProperty or a Property instance. |
Option(IOptionItem[] items)
public Option(IOptionItem[] items)
Creates a new PrintTicket option instance.
Parameters:
Parameter | Type | Description |
---|---|---|
items | IOptionItem[] | An arbitrary array of IOptionItem instance. Each one must be a ScoredProperty or a Property instance. |
Option(Option option)
public Option(Option option)
Creates a clone option instance.
Parameters:
Parameter | Type | Description |
---|---|---|
option | Option | An option instance to clone. |
add(IOptionItem[] items)
public void add(IOptionItem[] items)
Adds a list of items to the end of this option’s item list. Each one must be a ScoredProperty or a Property instance.
Parameters:
Parameter | Type | Description |
---|---|---|
items | IOptionItem[] | List of items to add. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getName()
public String getName()
Gets the element name.
Returns: java.lang.String
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |