Partager via


SnapshotSpan Implicit Conversion (SnapshotSpan to Span)

Implicitly converts a snapshot span to a span.

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

Syntax

'Déclaration
Public Shared Widening Operator CType ( _
    snapshotSpan As SnapshotSpan _
) As Span
public static implicit operator Span (
    SnapshotSpan snapshotSpan
)
static implicit operator Span (
    SnapshotSpan snapshotSpan
)
F# does not support the declaration of new casting operators.
JScript does not support the declaration of new casting operators.

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Span
The Span.

.NET Framework Security

See Also

Reference

SnapshotSpan Structure

Microsoft.VisualStudio.Text Namespace