Freigeben über


VsTextBufferCoordinatorClass.MapSecondaryToPrimarySpan Method

Definition

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

Parameters

tsSecondary
TextSpan

[in] A TextSpan object describing a position in the secondary buffer.

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.

Implements

Applies to