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
參數
snapshot
類型:Microsoft.VisualStudio.Text.ITextSnapshot要對應位置的快照。
傳回值
類型:Char
在指定位置上的字元。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentOutOfRangeException | 追蹤點是在快照集的結束位置。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。