Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function GetCurrentSpan ( _
<OutAttribute> ByRef piPos As Integer, _
<OutAttribute> ByRef piLen As Integer _
) As Integer
int GetCurrentSpan(
out int piPos,
out int piLen
)
int GetCurrentSpan(
[OutAttribute] int% piPos,
[OutAttribute] int% piLen
)
abstract GetCurrentSpan :
piPos:int byref *
piLen:int byref -> int
function GetCurrentSpan(
piPos : int,
piLen : int
) : int
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.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.