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
'Declaration
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.SnapshotPointA SnapshotPoint in one of the buffers of the graph.
trackingMode
Type: Microsoft.VisualStudio.Text.PointTrackingModeHow 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.