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