Поделиться через


IVsTextBufferCoordinator.MapPrimaryToSecondarySpan - метод

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

Пространство имен:  Microsoft.VisualStudio.TextManager.Interop
Сборка:  Microsoft.VisualStudio.TextManager.Interop.8.0 (в Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Синтаксис

'Декларация
Function MapPrimaryToSecondarySpan ( _
    tsPrimary As TextSpan, _
    <OutAttribute> ptsSecondary As TextSpan() _
) As Integer
int MapPrimaryToSecondarySpan(
    TextSpan tsPrimary,
    TextSpan[] ptsSecondary
)
int MapPrimaryToSecondarySpan(
    [InAttribute] TextSpan tsPrimary, 
    [OutAttribute] array<TextSpan>^ ptsSecondary
)
abstract MapPrimaryToSecondarySpan : 
        tsPrimary:TextSpan * 
        ptsSecondary:TextSpan[] byref -> int
function MapPrimaryToSecondarySpan(
    tsPrimary : TextSpan, 
    ptsSecondary : TextSpan[]
) : int

Параметры

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

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

Заметки

Модель COM подписи

Из singlefileeditor.idl:

HRESULT MapPrimaryToSecondarySpan(
   [in]  TextSpan  tsPrimary,
   [out] TextSpan *ptsSecondary
);

Безопасность платформы .NET Framework

См. также

Ссылки

IVsTextBufferCoordinator Интерфейс

Microsoft.VisualStudio.TextManager.Interop - пространство имен