IVsTextBufferCoordinator.MapPrimaryToSecondarySpan 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 primary buffer to a position in the secondary buffer.
public:
int MapPrimaryToSecondarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsSecondary);
public:
int MapPrimaryToSecondarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsSecondary);
int MapPrimaryToSecondarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsSecondary);
public int MapPrimaryToSecondarySpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan tsPrimary, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsSecondary);
abstract member MapPrimaryToSecondarySpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function MapPrimaryToSecondarySpan (tsPrimary As TextSpan, ptsSecondary As TextSpan()) As Integer
Parameters
- ptsSecondary
- TextSpan[]
[in, out] A TextSpan object that is filled in with the corresponding position in the secondary buffer.
Returns
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT MapPrimaryToSecondarySpan(
[in] TextSpan tsPrimary,
[out] TextSpan *ptsSecondary
);