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
'Declaration
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
snapshotSpan
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe snapshot span.
Return Value
Type: Microsoft.VisualStudio.Text.Span
The Span.
.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.