VsTextBufferCoordinatorClass.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:
virtual int MapPrimaryToSecondarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsSecondary) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBufferCoordinator::MapPrimaryToSecondarySpan;
public:
virtual int MapPrimaryToSecondarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsSecondary);
public:
virtual int MapPrimaryToSecondarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsSecondary) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBufferCoordinator::MapPrimaryToSecondarySpan;
virtual int MapPrimaryToSecondarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsPrimary, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsSecondary);
public virtual 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
override this.MapPrimaryToSecondarySpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Overridable 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.