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
'Declaración
Function ResetSpan ( _
iNewPos As Integer, _
iNewLen As Integer _
) As Integer
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
- 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.