1.首先简单的是获取得到的range,直接rangge.delete()
2.文本框的删除:
foreach (Microsoft.Office.Interop.Word.Shape shape in oDoc.Shapes) { if (shape.Name.Equals("AutoShape 530") || shape.Name.Equals("AutoShape 534")) { shape.Delete(); } }
1.首先简单的是获取得到的range,直接rangge.delete()
2.文本框的删除:
foreach (Microsoft.Office.Interop.Word.Shape shape in oDoc.Shapes) { if (shape.Name.Equals("AutoShape 530") || shape.Name.Equals("AutoShape 534")) { shape.Delete(); } }