将此跟踪点映射到指定快照,并获取位于该位置的字符。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。