Partilhar via


ITextSnapshot.Item Property

Gets one character at the specified position.

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

Syntax

'Declaração
ReadOnly Default Property Item ( _
    position As Integer _
) As Char
char this[
    int position
] { get; }
property wchar_t default[int position] {
    wchar_t get (int position);
}
abstract Item : char
JScript does not support indexed properties.

Parameters

  • position
    Type: System.Int32
    The position of the character.

Property Value

Type: System.Char
The character at position.

Exceptions

Exception Condition
ArgumentOutOfRangeException

position is less than zero, or greater than or equal to the length of the snapshot.

.NET Framework Security

See Also

Reference

ITextSnapshot Interface

Microsoft.VisualStudio.Text Namespace