Freigeben über


IElisionSnapshot.MapFromSourceSnapshotToNearest Method

Maps from a snapshot point in the source buffer to the corresponding point in the elision snapshot.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Function MapFromSourceSnapshotToNearest ( _
    point As SnapshotPoint _
) As SnapshotPoint
SnapshotPoint MapFromSourceSnapshotToNearest(
    SnapshotPoint point
)
SnapshotPoint MapFromSourceSnapshotToNearest(
    SnapshotPoint point
)
abstract MapFromSourceSnapshotToNearest : 
        point:SnapshotPoint -> SnapshotPoint 
function MapFromSourceSnapshotToNearest(
    point : SnapshotPoint
) : SnapshotPoint

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.SnapshotPoint
A position in the elision snapshot.

Exceptions

Exception Condition
ArgumentException

point does not belong to the source snapshot of this elision snapshot.

Remarks

If the source buffer position is not exposed in the elision snapshot, this method returns the nearest point that is exposed. If nothing is exposed, it returns position zero.

.NET Framework Security

See Also

Reference

IElisionSnapshot Interface

Microsoft.VisualStudio.Text.Projection Namespace