IVsTextStreamMarker.ResetSpan Method

Resets the position and extent of the text marker.

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

Syntax

'Déclaration
Function ResetSpan ( _
    iNewPos As Integer, _
    iNewLen As Integer _
) As Integer
'Utilisation
Dim instance As IVsTextStreamMarker
Dim iNewPos As Integer
Dim iNewLen As Integer
Dim returnValue As Integer

returnValue = instance.ResetSpan(iNewPos, _
    iNewLen)
int ResetSpan(
    int iNewPos,
    int iNewLen
)
int ResetSpan(
    [InAttribute] int iNewPos, 
    [InAttribute] int iNewLen
)
abstract ResetSpan : 
        iNewPos:int * 
        iNewLen:int -> int 
function ResetSpan(
    iNewPos : int, 
    iNewLen : int
) : int

Parameters

  • iNewPos
    Type: System.Int32
    [in] New position for the text marker in the text stream.
  • iNewLen
    Type: System.Int32
    [in] New length of the text marker in the text stream.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextStreamMarker::ResetSpan(
   [in] long iNewPos,
   [in] long iNewLen
);

Use this method to change to extent and location of a text marker.

.NET Framework Security

See Also

Reference

IVsTextStreamMarker Interface

IVsTextStreamMarker Members

Microsoft.VisualStudio.TextManager.Interop Namespace