共用方式為


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 命名空間