IVsTextBufferCoordinator::GetMappingOfPrimaryPosition Method (Int32, array<TextSpan>^, array<TextSpan>^)
Visual Studio 2015
Maps the specified position in the primary buffer to the span in the secondary buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int GetMappingOfPrimaryPosition( int lPosition, array<TextSpan>^ ptsPrimary, array<TextSpan>^ ptsSecondary )
Parameters
- lPosition
-
Type:
System::Int32
[in] A character offset into the primary buffer from the beginning of the buffer.
- ptsPrimary
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[in, out] A TextSpan object that is filled in with the line, offset pair in the primary buffer for the specified position.
- ptsSecondary
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[in, out] A TextSpan object that is filled in with the line, offset pair in the secondary buffer for the corresponding primary position.
From singlefileeditor.idl:
HRESULT GetMappingOfPrimaryPosition( [in] long lPosition, [out] TextSpan *ptsPrimary, [out] TextSpan *ptsSecondary );
Show: