다음을 통해 공유


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

‘선언
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 : SnapshotSpan with get, set
override Item : SnapshotSpan with get, set
JScript does not support indexed properties.

Parameters

  • index
    Type: System.Int32
    The location at which to get the snapshot span.

Property Value

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

Implements

IList<T>.Item[Int32]

Remarks

The set accessor throws a NotSupportedException.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

Microsoft.VisualStudio.Text Namespace