摘要:[.NET C# - Word] 遊標以行為單位移到本頁最後一行
01 
using Microsoft.Office.Interop.Word;
02
03
public class WordHelper
04
{
05
private _Document m_Document = null;
06
private _Application m_wordApplication = null;
07
08
/// <summary>
09
/// 游標移到最後(行)
10
/// </summary>
11
private void SelectionGoToLineLast()
12
{
13
object oGoToItem = WdGoToItem.wdGoToLine;
14
object oGoToDirection = WdGoToDirection.wdGoToLast;
15
Selection selection = this.m_wordApplication.Selection;
16
selection.GoTo(ref oGoToItem, ref oGoToDirection, ref oMissing, ref oMissing);
17
}
18
}

using Microsoft.Office.Interop.Word; 02
03
public class WordHelper 04
{ 05
private _Document m_Document = null; 06
private _Application m_wordApplication = null; 07
08
/// <summary> 09
/// 游標移到最後(行) 10
/// </summary> 11
private void SelectionGoToLineLast() 12
{ 13
object oGoToItem = WdGoToItem.wdGoToLine; 14
object oGoToDirection = WdGoToDirection.wdGoToLast; 15
Selection selection = this.m_wordApplication.Selection; 16
selection.GoTo(ref oGoToItem, ref oGoToDirection, ref oMissing, ref oMissing); 17
} 18
}
using