Compartilhar via


Método IVsTextBufferCoordinator.MapPrimaryToSecondarySpan

Mapeia a posição especificada no buffer principal para uma posição no buffer secundário.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxe

'Declaração
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 de retorno

Tipo: Int32
Se bem-sucedida, retorna S_OK; Caso contrário, retorna um código de erro.

Comentários

COM assinatura

De singlefileeditor.idl:

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

Segurança do .NET Framework

Consulte também

Referência

IVsTextBufferCoordinator Interface

Namespace Microsoft.VisualStudio.TextManager.Interop