Compartir a través de


IVsTextBufferCoordinator.MapPrimaryToSecondarySpan (Método)

asigna la posición especificada en el búfer primario a una posición en el búfer secundario.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop.8.0 (en Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxis

'Declaración
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

Parámetros

Valor devuelto

Tipo: Int32
Si finaliza correctamente, devuelve S_OK; de lo contrario, devuelve un código de error.

Comentarios

Prototipo COM

de singlefileeditor.idl:

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

Seguridad de .NET Framework

Vea también

Referencia

IVsTextBufferCoordinator Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)