ITextViewModel.GetNearestPointInVisualSnapshot Method
Gets a point in the VisualBuffer that corresponds to the specified point in the edit buffer. If the point is hidden or has an alternative representation, gets the nearest point to it.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Dichiarazione
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
Parameters
- editBufferPoint
Type: Microsoft.VisualStudio.Text.SnapshotPoint
A point in the EditBuffer.
- targetVisualSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The snapshot of VisualBuffer to map to.
- trackingMode
Type: Microsoft.VisualStudio.Text.PointTrackingMode
The PointTrackingMode to use when translating to targetVisualSnapshot.
Return Value
Type: Microsoft.VisualStudio.Text.SnapshotPoint
A point in the VisualBuffer that corresponds to the given point in targetVisualSnapshot.
Remarks
The definition of "nearest" depends on the implementation of the text view model.
.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.