IVsTextBufferCoordinator.MapSecondaryToPrimarySpan Method       
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Maps the specified position in the secondary buffer to a position in the primary buffer.
public:
 int MapSecondaryToPrimarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsSecondary, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsPrimary);public:
 int MapSecondaryToPrimarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsSecondary, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsPrimary);int MapSecondaryToPrimarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsSecondary, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsPrimary);public int MapSecondaryToPrimarySpan(Microsoft.VisualStudio.TextManager.Interop.TextSpan tsSecondary, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsPrimary);abstract member MapSecondaryToPrimarySpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> intPublic Function MapSecondaryToPrimarySpan (tsSecondary As TextSpan, ptsPrimary As TextSpan()) As IntegerParameters
- ptsPrimary
- TextSpan[]
[in, out] A TextSpan object that is filled in with the corresponding position in the primary buffer.
Returns
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT MapSecondaryToPrimarySpan(  
   [in]  TextSpan  tsSecondary,  
   [out] TextSpan *ptsPrimary  
);