IVsTextStreamMarker::ResetSpan Method (Int32, Int32)

 

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)

int ResetSpan(
	int iNewPos,
	int iNewLen
)

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.

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.

Return to top
Show: