IVsTextManager2.NavigateToPosition2(IVsTextBuffer, Guid, Int32, Int32, UInt32) Méthode

Définition

Passe à la position spécifiée.

public:
 int NavigateToPosition2(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, Guid % guidDocViewType, int iPos, int iLen, System::UInt32 grfIncludeViewFrameType);
public int NavigateToPosition2 (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer, ref Guid guidDocViewType, int iPos, int iLen, uint grfIncludeViewFrameType);
abstract member NavigateToPosition2 : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * Guid * int * int * uint32 -> int
Public Function NavigateToPosition2 (pBuffer As IVsTextBuffer, ByRef guidDocViewType As Guid, iPos As Integer, iLen As Integer, grfIncludeViewFrameType As UInteger) As Integer

Paramètres

pBuffer
IVsTextBuffer

dans Mémoire tampon de texte.

guidDocViewType
Guid

dans GUID du type d’affichage de document.

iPos
Int32

dans Position vers laquelle se déplacer.

iLen
Int32

dans Longueur.

grfIncludeViewFrameType
UInt32

dans Indique le type de frame de vue include. Pour plus d’informations, consultez _VIEWFRAMETYPE.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

S’applique à