获取word中配置的标签名称

using Aspose.Words;

Document doc = new Document(txbFile.Text);
List<string> listBookmark = new List<string>();
foreach (Aspose.Words.Bookmark bookmark in doc.Range.Bookmarks)
{
    listBookmark.Add(bookmark.Name);
}
if (listBookmark.Contains("_GoBack"))
{
    listBookmark.Remove("_GoBack");
}

 https://files.cnblogs.com/files/slyzly/Aspose.Words.rar

posted @ 2017-12-05 09:04  事理  阅读(378)  评论(0编辑  收藏  举报