IVsTextManager2.NavigateToPosition2 Method
Moves to the specified position.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaração
Function NavigateToPosition2 ( _
pBuffer As IVsTextBuffer, _
ByRef guidDocViewType As Guid, _
iPos As Integer, _
iLen As Integer, _
grfIncludeViewFrameType As UInteger _
) As Integer
int NavigateToPosition2(
IVsTextBuffer pBuffer,
ref Guid guidDocViewType,
int iPos,
int iLen,
uint grfIncludeViewFrameType
)
int NavigateToPosition2(
[InAttribute] IVsTextBuffer^ pBuffer,
[InAttribute] Guid% guidDocViewType,
[InAttribute] int iPos,
[InAttribute] int iLen,
[InAttribute] unsigned int grfIncludeViewFrameType
)
abstract NavigateToPosition2 :
pBuffer:IVsTextBuffer *
guidDocViewType:Guid byref *
iPos:int *
iLen:int *
grfIncludeViewFrameType:uint32 -> int
function NavigateToPosition2(
pBuffer : IVsTextBuffer,
guidDocViewType : Guid,
iPos : int,
iLen : int,
grfIncludeViewFrameType : uint
) : int
Parameters
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
[in] The text buffer.
- guidDocViewType
Type: System.Guid%
[in] GUID of the document view type.
- iPos
Type: System.Int32
[in] The position to move to.
- iLen
Type: System.Int32
[in] The length.
- grfIncludeViewFrameType
Type: System.UInt32
[in] Indicates the include view frame type. For more information, see _VIEWFRAMETYPE.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.