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();
}
}
