IVsTextStreamMarker::GetCurrentSpan Method (Int32, Int32)

 

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

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int GetCurrentSpan(
	[OutAttribute] int% piPos,
	[OutAttribute] int% piLen
)

Parameters

piPos
Type: System::Int32

[out] Position of the text marker.

piLen
Type: System::Int32

[out] Length of the text marker.

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

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

Return to top
Show: