IBufferGraph.CreateMappingSpan Method
Initializes a new instance of a IMappingSpan.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'宣告
Function CreateMappingSpan ( _
span As SnapshotSpan, _
trackingMode As SpanTrackingMode _
) As IMappingSpan
IMappingSpan CreateMappingSpan(
SnapshotSpan span,
SpanTrackingMode trackingMode
)
IMappingSpan^ CreateMappingSpan(
SnapshotSpan span,
SpanTrackingMode trackingMode
)
abstract CreateMappingSpan :
span:SnapshotSpan *
trackingMode:SpanTrackingMode -> IMappingSpan
function CreateMappingSpan(
span : SnapshotSpan,
trackingMode : SpanTrackingMode
) : IMappingSpan
Parameters
- span
Type: Microsoft.VisualStudio.Text.SnapshotSpan
A SnapshotSpan in one of the buffers of the graph.
- trackingMode
Type: Microsoft.VisualStudio.Text.SpanTrackingMode
How to track the span.
Return Value
Type: Microsoft.VisualStudio.Text.IMappingSpan
A IMappingSpan 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.