다음을 통해 공유


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

'Declaration
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 : 
        position:int -> char with get
JScript does not support indexed properties.

Parameters

  • position
    Type: Int32

    The position of the character.

Property Value

Type: 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