Compartir a través de


IVsTextBufferCoordinator.MapSecondaryToPrimarySpan (Método)

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

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 MapSecondaryToPrimarySpan ( _
    tsSecondary As TextSpan, _
    <OutAttribute> ptsPrimary As TextSpan() _
) As Integer
int MapSecondaryToPrimarySpan(
    TextSpan tsSecondary,
    TextSpan[] ptsPrimary
)
int MapSecondaryToPrimarySpan(
    [InAttribute] TextSpan tsSecondary, 
    [OutAttribute] array<TextSpan>^ ptsPrimary
)
abstract MapSecondaryToPrimarySpan : 
        tsSecondary:TextSpan * 
        ptsPrimary:TextSpan[] byref -> int
function MapSecondaryToPrimarySpan(
    tsSecondary : TextSpan, 
    ptsPrimary : 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 MapSecondaryToPrimarySpan(
   [in]  TextSpan  tsSecondary,
   [out] TextSpan *ptsPrimary
);

Seguridad de .NET Framework

Vea también

Referencia

IVsTextBufferCoordinator Interfaz

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