IVsTextBufferCoordinator.MapPrimaryToSecondarySpan Method
Maps the specified position in the primary buffer to a position in the secondary buffer.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaration
Function MapPrimaryToSecondarySpan ( _
tsPrimary As TextSpan, _
<OutAttribute> ptsSecondary As TextSpan() _
) As Integer
int MapPrimaryToSecondarySpan(
TextSpan tsPrimary,
TextSpan[] ptsSecondary
)
int MapPrimaryToSecondarySpan(
[InAttribute] TextSpan tsPrimary,
[OutAttribute] array<TextSpan>^ ptsSecondary
)
abstract MapPrimaryToSecondarySpan :
tsPrimary:TextSpan *
ptsSecondary:TextSpan[] byref -> int
function MapPrimaryToSecondarySpan(
tsPrimary : TextSpan,
ptsSecondary : TextSpan[]
) : int
Parameters
- tsPrimary
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan
[in] A TextSpan object describing a position in the primary buffer.
- ptsSecondary
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[in, out] A TextSpan object that is filled in with the corresponding position in the secondary buffer.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT MapPrimaryToSecondarySpan(
[in] TextSpan tsPrimary,
[out] TextSpan *ptsSecondary
);
.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.