VsTextBufferCoordinatorClass.MapSecondaryToPrimarySpan Method
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:
virtual int MapSecondaryToPrimarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsSecondary, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsPrimary) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBufferCoordinator::MapSecondaryToPrimarySpan;
public:
virtual int MapSecondaryToPrimarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsSecondary, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsPrimary);
public:
virtual int MapSecondaryToPrimarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsSecondary, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsPrimary) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBufferCoordinator::MapSecondaryToPrimarySpan;
virtual int MapSecondaryToPrimarySpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan tsSecondary, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsPrimary);
public virtual 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[] -> int
override this.MapSecondaryToPrimarySpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Overridable Function MapSecondaryToPrimarySpan (tsSecondary As TextSpan, ptsPrimary As TextSpan()) As Integer
- ptsPrimary
- TextSpan[]
[in, out] A TextSpan object that is filled in with the corresponding position in the primary buffer.
If successful, returns S_OK; otherwise, returns an error code.