Class Staple.StapleOption
Namespace: Aspose.Page.XPS.XpsMetadata
Assembly: Aspose.Page.dll (25.1.2)
Describes the Aspose.Page.XPS.XpsMetadata.JobStapleAllDocuments and Aspose.Page.XPS.XpsMetadata.DocumentStaple features options.
public sealed class Staple.StapleOption : Option, IFeatureItem, IPrintTicketElementChild
Inheritance
object ← PrintTicketElement ← CompositePrintTicketElement ← Option ← Staple.StapleOption
Implements
IFeatureItem, IPrintTicketElementChild
Inherited Members
Option.Add(params IOptionItem[]), PrintTicketElement.Name, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
StapleOption(string, params IStapleOptionItem[])
Creates a new instance.
public StapleOption(string optionName, params Staple.IStapleOptionItem[] items)
Parameters
optionName
string
An options name.
items
Staple.IStapleOptionItem[]
An arbitrary array of Aspose.Page.XPS.XpsMetadata.Staple.IStapleOptionItem instances.
Fields
None
Specifies no stapling.
public static readonly Staple.StapleOption None
Field Value
SaddleStitch
Specifies saddle stitch stapling.
public static readonly Staple.StapleOption SaddleStitch
Field Value
StapleBottomLeft
Specifies a single staple in the bottom, left corner.
public static readonly Staple.StapleOption StapleBottomLeft
Field Value
StapleBottomRight
Specifies a single staple in the bottom, right corner.
public static readonly Staple.StapleOption StapleBottomRight
Field Value
StapleDualBottom
Specifies two staples along the bottom edge.
public static readonly Staple.StapleOption StapleDualBottom
Field Value
StapleDualLeft
Specifies two staples along the left edge.
public static readonly Staple.StapleOption StapleDualLeft
Field Value
StapleDualRight
Specifies two staples along the right edge.
public static readonly Staple.StapleOption StapleDualRight
Field Value
StapleDualTop
Specifies two staples along the top edge
public static readonly Staple.StapleOption StapleDualTop
Field Value
StapleTopLeft
Specifies a single staple in the top, left corner.
public static readonly Staple.StapleOption StapleTopLeft
Field Value
StapleTopRight
Specifies a single staple in the top, right corner.
public static readonly Staple.StapleOption StapleTopRight
Field Value
Methods
Add(params IStapleOptionItem[])
Adds an array of Aspose.Page.XPS.XpsMetadata.Staple.IStapleOptionItem instances to the feature.
public Staple.StapleOption Add(params Staple.IStapleOptionItem[] items)
Parameters
items
Staple.IStapleOptionItem[]
An arbitrary array of Aspose.Page.XPS.XpsMetadata.Staple.IStapleOptionItem instances.
Returns
This options instance.
SetAngle(int)
Sets an Angle scored property value.
public Staple.StapleOption SetAngle(int angle)
Parameters
angle
int
An Angle scored property value.
Returns
This option instance.
SetSheetCapacity(int)
Sets an SheetCapacity scored property value.
public Staple.StapleOption SetSheetCapacity(int sheetCapacity)
Parameters
sheetCapacity
int
An SheetCapacity scored property value.
Returns
This option instance.