OperatorCollectionInsert Method (Int32, Operator)
Inserts operator into collection.

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public override void Insert(
	int index,
	Operator op
)

Parameters

index
Type: SystemInt32
Index where new operator must be added
op
Type: Aspose.PdfOperator
Operator which will be insterted
Examples
Example demonstrates how to insert operator to the page contents.
C#
Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Insert(1, new Aspose.Pdf.Operators.q());
oc.Add(new Aspose.Pdf.Operators.Q());
See Also