Partager via


IVsTextBufferCoordinator.MapSecondaryToPrimarySpan, méthode

Mappe une position spécifiée dans la mémoire tampon secondaire à une position dans la mémoire tampon primaire.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop.8.0 (dans Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntaxe

'Déclaration
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

Paramètres

Valeur de retour

Type : Int32
Si réussi, retours S_OK ; sinon, retours code d'erreur.

Notes

Signature de COM

De singlefileeditor.idl :

HRESULT MapSecondaryToPrimarySpan(
   [in]  TextSpan  tsSecondary,
   [out] TextSpan *ptsPrimary
);

Sécurité .NET Framework

Voir aussi

Référence

IVsTextBufferCoordinator Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms