Share via


NormalizedSnapshotSpanCollection.Item Property

Gets the snapshot span at the specified location.

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

Syntax

'Declaration
Public Default Property Item ( _
    index As Integer _
) As SnapshotSpan
public SnapshotSpan this[
    int index
] { get; set; }
public:
virtual property SnapshotSpan default[int index] {
    SnapshotSpan get (int index) sealed;
    void set (int index, SnapshotSpan value) sealed;
}
abstract Item : 
        index:int -> SnapshotSpan with get, set 
override Item : 
        index:int -> SnapshotSpan with get, set
JScript does not support indexed properties.

Parameters

  • index
    Type: Int32

    The location at which to get the snapshot span.

Property Value

Type: Microsoft.VisualStudio.Text.SnapshotSpan
The snapshot span.

Implements

IList.Item

Remarks

The set accessor throws a NotSupportedException.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

Microsoft.VisualStudio.Text Namespace