Поделиться через


VsTextPackageClass.NavigateToPosition - метод

Находит или создает соответствующее представление в указанном буфере и помещает выделение в указанную позицию линейная.

Пространство имен:  Microsoft.VisualStudio.TextManager.Interop
Сборка:  Microsoft.VisualStudio.TextManager.Interop (в Microsoft.VisualStudio.TextManager.Interop.dll)

Синтаксис

'Декларация
Public Overridable Function NavigateToPosition ( _
    pBuffer As IVsTextBuffer, _
    ByRef guidDocViewType As Guid, _
    iPos As Integer, _
    iLen As Integer _
) As Integer
public virtual int NavigateToPosition(
    IVsTextBuffer pBuffer,
    ref Guid guidDocViewType,
    int iPos,
    int iLen
)
public:
virtual int NavigateToPosition(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [InAttribute] Guid% guidDocViewType, 
    [InAttribute] int iPos, 
    [InAttribute] int iLen
)
abstract NavigateToPosition : 
        pBuffer:IVsTextBuffer * 
        guidDocViewType:Guid byref * 
        iPos:int * 
        iLen:int -> int  
override NavigateToPosition : 
        pBuffer:IVsTextBuffer * 
        guidDocViewType:Guid byref * 
        iPos:int * 
        iLen:int -> int
public function NavigateToPosition(
    pBuffer : IVsTextBuffer, 
    guidDocViewType : Guid, 
    iPos : int, 
    iLen : int
) : int

Параметры

  • guidDocViewType
    Тип: Guid%

    [in] идентификатор GUID, определяющий представление. Это значение всегда должно быть LOGVIEWID_TextView.

  • iPos
    Тип: Int32

    [in] линейная позиция в буфере, в котором поместить курсор.

  • iLen
    Тип: Int32

    [in] длина выделения.

Возвращаемое значение

Тип: Int32

Реализации

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

Безопасность платформы .NET Framework

См. также

Ссылки

VsTextPackageClass Класс

Microsoft.VisualStudio.TextManager.Interop - пространство имен