IVsTextBufferCoordinator.MapSecondaryToPrimarySpan Method (TextSpan, TextSpan[])

 

Maps the specified position in the secondary buffer to a position in the primary buffer.

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

int MapSecondaryToPrimarySpan(
	TextSpan tsSecondary,
	TextSpan[] ptsPrimary
)

Parameters

tsSecondary
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan

[in] A TextSpan object describing a position in the secondary buffer.

ptsPrimary
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[]

[in, out] A TextSpan object that is filled in with the corresponding position in the primary buffer.

Return Value

Type: System.Int32

If successful, returns S_OK; otherwise, returns an error code.

From singlefileeditor.idl:

HRESULT MapSecondaryToPrimarySpan(
   [in]  TextSpan  tsSecondary,
   [out] TextSpan *ptsPrimary
);
Return to top
Show: