NormalizedSnapshotSpanCollection Constructor (SnapshotSpan)
Initializes a new instance of a NormalizedSnapshotSpanCollection with a single element.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Sub New ( _
span As SnapshotSpan _
)
public NormalizedSnapshotSpanCollection(
SnapshotSpan span
)
public:
NormalizedSnapshotSpanCollection(
SnapshotSpan span
)
new :
span:SnapshotSpan -> NormalizedSnapshotSpanCollection
public function NormalizedSnapshotSpanCollection(
span : SnapshotSpan
)
Parameters
span
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe single member of the collection.
Exceptions
Exception | Condition |
---|---|
ArgumentException | span is not initialized. |
.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.
See Also
Reference
NormalizedSnapshotSpanCollection Class