ITextSnapshot.Item 属性

获取对指定位置的字符。

命名空间:  Microsoft.VisualStudio.Text
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
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 不支持索引属性。

参数

  • position
    类型:Int32

    字符的位置。

属性值

类型:Char
位于 position 的字符。

异常

异常 条件
ArgumentOutOfRangeException

position 小于零或大于或等于快照的长度。

.NET Framework 安全性

请参阅

参考

ITextSnapshot 接口

Microsoft.VisualStudio.Text 命名空间