共用方式為


ITrackingPoint.GetCharacter 方法

將此追蹤點對應至指定的快照,並取得該位置上的字元。

命名空間:  Microsoft.VisualStudio.Text
組件:  Microsoft.VisualStudio.Text.Data (在 Microsoft.VisualStudio.Text.Data.dll 中)

語法

'宣告
Function GetCharacter ( _
    snapshot As ITextSnapshot _
) As Char
char GetCharacter(
    ITextSnapshot snapshot
)
wchar_t GetCharacter(
    ITextSnapshot^ snapshot
)
abstract GetCharacter : 
        snapshot:ITextSnapshot -> char
function GetCharacter(
    snapshot : ITextSnapshot
) : char

參數

傳回值

類型:Char
在指定位置上的字元。

例外狀況

例外狀況 條件
ArgumentOutOfRangeException

追蹤點是在快照集的結束位置。

.NET Framework 安全性

請參閱

參考

ITrackingPoint 介面

Microsoft.VisualStudio.Text 命名空間