IVsTextStreamMarker.GetCurrentSpan(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.