ITextViewLine.GetExtendedCharacterBounds 方法 (VirtualSnapshotPoint)

计算指定虚拟缓冲区位置处的字符的边界(包括所有空间协调修饰)。

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

参数

返回值

类型:Microsoft.VisualStudio.Text.Formatting.TextBounds
一个 TextBounds 结构。

异常

异常 条件
ArgumentOutOfRangeException

bufferPosition 不对应于此行中的位置。

备注

双向文本在其边缘右侧位于前边缘。

.NET Framework 安全性

请参阅

参考

ITextViewLine 接口

GetExtendedCharacterBounds 重载

Microsoft.VisualStudio.Text.Formatting 命名空间