次の方法で共有


IVsTextStreamMarker.GetCurrentSpan(Int32, Int32) Method

Definition

Returns current position information of the marker in the text stream.

public:
 int GetCurrentSpan([Runtime::InteropServices::Out] int % piPos, [Runtime::InteropServices::Out] int % piLen);
int GetCurrentSpan([Runtime::InteropServices::Out] int & piPos, [Runtime::InteropServices::Out] int & piLen);
public int GetCurrentSpan (out int piPos, out int piLen);
abstract member GetCurrentSpan : int * int -> int
Public Function GetCurrentSpan (ByRef piPos As Integer, ByRef piLen As Integer) As Integer

Parameters

piPos
Int32

[out] Position of the text marker.

piLen
Int32

[out] Length of the text marker.

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::GetCurrentSpan(  
   [out] long *piPos,  
   [out] long *piLen  
);  

Use this method to determine the current extent and position of the text marker.

Applies to