ITextViewModel.IsPointInVisualBuffer Method
Determines whether a point in the edit buffer is represented in the visual buffer.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function IsPointInVisualBuffer ( _
editBufferPoint As SnapshotPoint, _
affinity As PositionAffinity _
) As Boolean
bool IsPointInVisualBuffer(
SnapshotPoint editBufferPoint,
PositionAffinity affinity
)
bool IsPointInVisualBuffer(
SnapshotPoint editBufferPoint,
PositionAffinity affinity
)
abstract IsPointInVisualBuffer :
editBufferPoint:SnapshotPoint *
affinity:PositionAffinity -> bool
function IsPointInVisualBuffer(
editBufferPoint : SnapshotPoint,
affinity : PositionAffinity
) : boolean
Parameters
editBufferPoint
Type: Microsoft.VisualStudio.Text.SnapshotPointA point in the EditBuffer.
affinity
Type: Microsoft.VisualStudio.Text.PositionAffinityIf 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.
Return Value
Type: Boolean
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.