OperatorCollectionInsert Method (Int32, Operator) |
Insert operators at the the given position.
Namespace: Aspose.PdfAssembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntaxpublic void Insert(
int at,
Operator[] ops
)
Public Sub Insert (
at As Integer,
ops As Operator()
)
public:
void Insert(
int at,
array<Operator^>^ ops
)
member Insert :
at : int *
ops : Operator[] -> unit
Parameters
- at
- Type: SystemInt32
Index from which operators are being started to insert. - ops
- Type: Aspose.PdfOperator
Array of operators to be inserted. Each operator can have any index (by default -1) because their indices adjusted automatically starting from at.
Examples
Example demonstrates how to insert operator to the page contents.
Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Insert(1, new Operator[] { new Aspose.Pdf.Operators.q(), new Aspose.Pdf.Operators.Q() } );
See Also