0
假设我有以下结构: -C#:特定段落后获取表的索引
我想获得第二个表的“1.3款3的标题”后的指数,意味着未来: -
输入是
1.3款3的标题
预期的输出
这是在文档中第四表,或者可以说
The requested member of the collection
equlas四强。
的这个使用下面的代码
Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();
Documents docs = app.Documents;
Document doc = docs.Open(sDocPath, ReadOnly: true);
Table t = doc.Tables[4] // 4 that what I need