Share via


ITextViewModel.GetNearestPointInVisualSnapshot, méthode

Obtient un point de l'élément VisualBuffer correspondant au point spécifié dans la mémoire tampon d'édition. Si le point est masqué ou est représenté différemment, c'est le point qui lui est le plus proche qui est obtenu.

Espace de noms :  Microsoft.VisualStudio.Text.Editor
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
Function GetNearestPointInVisualSnapshot ( _
    editBufferPoint As SnapshotPoint, _
    targetVisualSnapshot As ITextSnapshot, _
    trackingMode As PointTrackingMode _
) As SnapshotPoint
SnapshotPoint GetNearestPointInVisualSnapshot(
    SnapshotPoint editBufferPoint,
    ITextSnapshot targetVisualSnapshot,
    PointTrackingMode trackingMode
)
SnapshotPoint GetNearestPointInVisualSnapshot(
    SnapshotPoint editBufferPoint, 
    ITextSnapshot^ targetVisualSnapshot, 
    PointTrackingMode trackingMode
)
abstract GetNearestPointInVisualSnapshot : 
        editBufferPoint:SnapshotPoint * 
        targetVisualSnapshot:ITextSnapshot * 
        trackingMode:PointTrackingMode -> SnapshotPoint
function GetNearestPointInVisualSnapshot(
    editBufferPoint : SnapshotPoint, 
    targetVisualSnapshot : ITextSnapshot, 
    trackingMode : PointTrackingMode
) : SnapshotPoint

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.SnapshotPoint
Point de l'élément VisualBuffer correspondant au point spécifié dans l'élément targetVisualSnapshot.

Notes

La définition de « le plus proche » dépend de l'implémentation du modèle d'affichage de texte.

Sécurité .NET Framework

Voir aussi

Référence

ITextViewModel Interface

Microsoft.VisualStudio.Text.Editor, espace de noms