Delete
内容
[
隐藏
]Delete(int)
从集合中删除运算符。
public void Delete(int index)
范围 | 类型 | 描述 |
---|---|---|
index | Int32 | 必须删除的运算符索引。运算符编号从 1 开始。 |
例子
示例演示如何按索引删除运算符。
Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Delete(3);
也可以看看
- class OperatorCollection
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF
Delete(Operator[])
从集合中删除运算符。
public void Delete(Operator[] ops)
范围 | 类型 | 描述 |
---|---|---|
ops | Operator[] | 要删除的运算符数组 |
例子
示例演示如何从页面内容中删除运算符。
Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Delete(new Operator[] { oc[1] } );
也可以看看
- class Operator
- class OperatorCollection
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF
Delete(IList<Operator>)
从集合中删除运算符。
public void Delete(IList<Operator> list)
范围 | 类型 | 描述 |
---|---|---|
list | IList`1 | 要删除的运算符列表 |
例子
示例演示如何从页面内容中删除运算符。
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);
也可以看看
- class Operator
- class OperatorCollection
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF