ITextViewModel.IsPointInVisualBuffer(SnapshotPoint, PositionAffinity) Méthode

Définition

Détermine la représentation ou non d'un point de la mémoire tampon d'édition dans la mémoire tampon visuelle.

public:
 bool IsPointInVisualBuffer(Microsoft::VisualStudio::Text::SnapshotPoint editBufferPoint, Microsoft::VisualStudio::Text::PositionAffinity affinity);
public bool IsPointInVisualBuffer (Microsoft.VisualStudio.Text.SnapshotPoint editBufferPoint, Microsoft.VisualStudio.Text.PositionAffinity affinity);
abstract member IsPointInVisualBuffer : Microsoft.VisualStudio.Text.SnapshotPoint * Microsoft.VisualStudio.Text.PositionAffinity -> bool
Public Function IsPointInVisualBuffer (editBufferPoint As SnapshotPoint, affinity As PositionAffinity) As Boolean

Paramètres

editBufferPoint
SnapshotPoint

Point d'un EditBuffer.

affinity
PositionAffinity

Si le mappage est ambigu, ce paramètre affecte le mappage comme suit : si affinity est Predecessor , le mappage cible la position immédiatement après le caractère précédent dans la mémoire tampon de projection ; si affinity est Successor , le mappage cible la position immédiatement avant le caractère suivant dans la mémoire tampon de projection. Ce paramètre n'a pas d'effet si le mappage n'est pas ambigu.

Retours

Boolean

true si le point est représenté dans la mémoire tampon visuelle, sinon false.

Remarques

Un point représenté dans la mémoire tampon visuelle peut ne pas être visible à l’écran, mais si la vue défile vers cette position, le point devient visible.

S’applique à