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