void MoveToParagraph(Microsoft.Office.Interop.Word.Document d, int number)
{
Microsoft.Office.Interop.Word.Range r = d.Paragraphs[number].Range;
object dir = Microsoft.Office.Interop.Word.WdCollapseDirection.wdCollapseStart;
r.Collapse(ref dir);
r.Select();
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2468 次 |
| 最近记录: |