IBufferGraph.CreateMappingPoint Method
Creates a new IMappingPoint with the specified snapshot point and tracking mode.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Déclaration
Function CreateMappingPoint ( _
point As SnapshotPoint, _
trackingMode As PointTrackingMode _
) As IMappingPoint
IMappingPoint CreateMappingPoint(
SnapshotPoint point,
PointTrackingMode trackingMode
)
IMappingPoint^ CreateMappingPoint(
SnapshotPoint point,
PointTrackingMode trackingMode
)
abstract CreateMappingPoint :
point:SnapshotPoint *
trackingMode:PointTrackingMode -> IMappingPoint
function CreateMappingPoint(
point : SnapshotPoint,
trackingMode : PointTrackingMode
) : IMappingPoint
Parameters
- point
Type: Microsoft.VisualStudio.Text.SnapshotPoint
A SnapshotPoint in one of the buffers of the graph.
- trackingMode
Type: Microsoft.VisualStudio.Text.PointTrackingMode
How to track the point.
Return Value
Type: Microsoft.VisualStudio.Text.IMappingPoint
A IMappingPoint that can track within its buffer and map within the graph.
.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.