Compartir a través de


IVsTextStreamMarker.ResetSpan(Int32, Int32) Method

Definition

Resets the position and extent of the text marker.

public:
 int ResetSpan(int iNewPos, int iNewLen);
public:
 int ResetSpan(int iNewPos, int iNewLen);
int ResetSpan(int iNewPos, int iNewLen);
public int ResetSpan (int iNewPos, int iNewLen);
abstract member ResetSpan : int * int -> int
Public Function ResetSpan (iNewPos As Integer, iNewLen As Integer) As Integer

Parameters

iNewPos
Int32

[in] New position for the text marker in the text stream.

iNewLen
Int32

[in] New length of the text marker in the text stream.

Returns

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.

Applies to