VsTextBufferCoordinatorClass.MapSecondaryToPrimarySpan(TextSpan, TextSpan[]) Метод

Определение

Сопоставляет заданное положение во вторичном буфере положению в первичном буфере.

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, 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

Параметры

tsSecondary
TextSpan

[in] Объект TextSpan, описывающий позицию во вторичном буфере.

ptsPrimary
TextSpan[]

[in, out] Объект TextSpan, который заполняется соответствующей позицией в первичном буфере.

Возвращаемое значение

Int32

Возвращает значение S_OK, если выполнение прошло успешно; в противном случае возвращает код ошибки.

Реализации

Применяется к