Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图弄清楚如何以编程方式(C#,Visual Studio 中的 Office 2010 项目)选择两个书签之间的文本,不包括书签本身。我觉得这应该很容易,但我的谷歌搜索技能让我失望了!
谢谢!
这对我有用,很容易!
object start = Globals.ThisDocument.bm1.Start + 1; object end = Globals.ThisDocument.bm2.Start - 1; Range r = Globals.ThisDocument.Range(ref start, ref end);