Class Staple.StapleOption
Namespace: Aspose.Page.XPS.XpsMetadata
Assembly: Aspose.Page.dll (25.8.0)
Describes the Aspose.Page.XPS.XpsMetadata.JobStapleAllDocuments and Aspose.Page.XPS.XpsMetadata.DocumentStaple features options.
public sealed class Staple.StapleOption : Option, IFeatureItem, IPrintTicketElementChildInheritance
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 NoneField Value
SaddleStitch
Specifies saddle stitch stapling.
public static readonly Staple.StapleOption SaddleStitchField Value
StapleBottomLeft
Specifies a single staple in the bottom, left corner.
public static readonly Staple.StapleOption StapleBottomLeftField Value
StapleBottomRight
Specifies a single staple in the bottom, right corner.
public static readonly Staple.StapleOption StapleBottomRightField Value
StapleDualBottom
Specifies two staples along the bottom edge.
public static readonly Staple.StapleOption StapleDualBottomField Value
StapleDualLeft
Specifies two staples along the left edge.
public static readonly Staple.StapleOption StapleDualLeftField Value
StapleDualRight
Specifies two staples along the right edge.
public static readonly Staple.StapleOption StapleDualRightField Value
StapleDualTop
Specifies two staples along the top edge
public static readonly Staple.StapleOption StapleDualTopField Value
StapleTopLeft
Specifies a single staple in the top, left corner.
public static readonly Staple.StapleOption StapleTopLeftField Value
StapleTopRight
Specifies a single staple in the top, right corner.
public static readonly Staple.StapleOption StapleTopRightField 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.