首页 > 解决方案 > 通过C#在word文档中查找分栏符的位置

问题描述

我有一个 Word 文档。在本文档中,我有一个分栏符。现在,我想获取此分栏符的位置。我希望你能帮助我解决我的问题。感谢您的收看。

int ColumnBreak()
{
    if (_activeDoc.Content.Find.Execute(FindText: "^n"))
             MessageBox.Show("This document has break column");
//I don't know how to find the position of this column break
    return 1;
}

标签: c#ms-wordoffice-interop

解决方案


推荐阅读