共用方式為


VsTextPackageClass.NavigateToLineAndColumn Method

Finds or creates an appropriate view on the specified buffer and places the selection at the specified location.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
Public Overridable Function NavigateToLineAndColumn ( _
    pBuffer As IVsTextBuffer, _
    ByRef guidDocViewType As Guid, _
    iStartRow As Integer, _
    iStartIndex As Integer, _
    iEndRow As Integer, _
    iEndIndex As Integer _
) As Integer
'用途
Dim instance As VsTextPackageClass
Dim pBuffer As IVsTextBuffer
Dim guidDocViewType As Guid
Dim iStartRow As Integer
Dim iStartIndex As Integer
Dim iEndRow As Integer
Dim iEndIndex As Integer
Dim returnValue As Integer

returnValue = instance.NavigateToLineAndColumn(pBuffer, _
    guidDocViewType, iStartRow, iStartIndex, _
    iEndRow, iEndIndex)
public virtual int NavigateToLineAndColumn(
    IVsTextBuffer pBuffer,
    ref Guid guidDocViewType,
    int iStartRow,
    int iStartIndex,
    int iEndRow,
    int iEndIndex
)
public:
virtual int NavigateToLineAndColumn(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [InAttribute] Guid% guidDocViewType, 
    [InAttribute] int iStartRow, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndRow, 
    [InAttribute] int iEndIndex
)
abstract NavigateToLineAndColumn : 
        pBuffer:IVsTextBuffer * 
        guidDocViewType:Guid byref * 
        iStartRow:int * 
        iStartIndex:int * 
        iEndRow:int * 
        iEndIndex:int -> int 
override NavigateToLineAndColumn : 
        pBuffer:IVsTextBuffer * 
        guidDocViewType:Guid byref * 
        iStartRow:int * 
        iStartIndex:int * 
        iEndRow:int * 
        iEndIndex:int -> int 
public function NavigateToLineAndColumn(
    pBuffer : IVsTextBuffer, 
    guidDocViewType : Guid, 
    iStartRow : int, 
    iStartIndex : int, 
    iEndRow : int, 
    iEndIndex : int
) : int

Parameters

  • iStartRow
    Type: System.Int32
    [in] Starting line for the selection to locate.
  • iStartIndex
    Type: System.Int32
    [in] Starting index for the selection to locate.
  • iEndRow
    Type: System.Int32
    [in] Ending line for the selection to locate.
  • iEndIndex
    Type: System.Int32
    [in] Ending index for the selection to locate.

Return Value

Type: System.Int32

Implements

IVsTextManager.NavigateToLineAndColumn(IVsTextBuffer, Guid%, Int32, Int32, Int32, Int32)

.NET Framework Security

See Also

Reference

VsTextPackageClass Class

VsTextPackageClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace