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
tsSecondary
Type : Microsoft.VisualStudio.TextManager.Interop.TextSpan[in] objet d'Un TextSpan décrivant une position dans la mémoire tampon secondaire.
ptsPrimary
Type : array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in, out] objet d'Un TextSpan qui est rempli avec la position correspondante dans la mémoire tampon primaire.
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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.