OperatorCollection.Delete

Delete(int)

Deletes operator from collection.

public void Delete(int index)
ParameterTypeDescription
indexInt32Index of operator which must be deleted. Operators numbering starts from 1.

Examples

Example demonstrates how to delete operator by its index.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Delete(3);

See Also


Delete(Operator[])

Deletes operators from collection.

public void Delete(Operator[] ops)
ParameterTypeDescription
opsOperator[]Array of operators to delete

Examples

Example demonstrates how to remove operator from page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Delete(new Operator[] { oc[1] } );

See Also


Delete(IList<Operator>)

Deletes operators from collection.

public void Delete(IList<Operator> list)
ParameterTypeDescription
listIList`1The list of operators to delete

Examples

Example demonstrates how to remove operator from page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
List<Operator> opList = new List<Operator>();
opList.Add(oc[1]);
oc.Delete(opList);

See Also