计算指定缓冲区位置处的字符的边界。
命名空间: Microsoft.VisualStudio.Text.Formatting
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
Function GetCharacterBounds ( _
bufferPosition As VirtualSnapshotPoint _
) As TextBounds
TextBounds GetCharacterBounds(
VirtualSnapshotPoint bufferPosition
)
TextBounds GetCharacterBounds(
VirtualSnapshotPoint bufferPosition
)
abstract GetCharacterBounds :
bufferPosition:VirtualSnapshotPoint -> TextBounds
function GetCharacterBounds(
bufferPosition : VirtualSnapshotPoint
) : TextBounds
参数
bufferPosition
类型:Microsoft.VisualStudio.Text.VirtualSnapshotPoint基于文本缓冲区的字符索引。
返回值
类型:Microsoft.VisualStudio.Text.Formatting.TextBounds
一个 TextBounds 结构。
异常
异常 | 条件 |
---|---|
ArgumentOutOfRangeException | bufferPosition 不对应于此行中的位置。 |
备注
双向文本在其边缘右侧位于前边缘。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。