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
'Déclaration
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
- point
Type: Microsoft.VisualStudio.Text.SnapshotPoint
The snapshot point in a source buffer to map.
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
- 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.