Freigeben über


ITextViewModel.IsPointInVisualBuffer(SnapshotPoint, PositionAffinity) Method

Definition

Determines whether a point in the edit buffer is represented in the visual buffer.

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

Parameters

editBufferPoint
SnapshotPoint

A point in the EditBuffer.

affinity
PositionAffinity

If the mapping is ambiguous, this parameter affects the mapping as follows: if affinity is Predecessor, the mapping targets the position immediately after the preceding character in the projection buffer; if affinity is Successor, the mapping targets the position immediately before the following character in the projection buffer. This parameter has no effect if the mapping is unambiguous.

Returns

true if the point is represented in the visual buffer, otherwise false.

Remarks

A point that is represented in the visual buffer may not be visible on screen, but if the view is scrolled to that position, then the point would become visible.

Applies to