private void BtDeleteAllBookmark_Click(object sender, EventArgs e) { btDeleteAllBookmark.Enabled = false; //切换当前文档的视图类型为 [页面视图] _word.ChangePrintView(); //删除 Word 文档中所有标记的书签 DeleteAllBookmark(); btDeleteAllBookmark.Enabled = true; }
private void BtDeleteAllBookmark_Click(object sender, EventArgs e) { btDeleteAllBookmark.Enabled = false; //切换当前文档的视图类型为 [页面视图] _word.ChangePrintView(); //删除 Word 文档中所有标记的书签 DeleteAllBookmark(); btDeleteAllBookmark.Enabled = true; }