ITextViewLine.GetExtendedCharacterBounds 方法 (SnapshotPoint)

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

命名空间:  Microsoft.VisualStudio.Text.Formatting
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
Function GetExtendedCharacterBounds ( _
    bufferPosition As SnapshotPoint _
) As TextBounds
TextBounds GetExtendedCharacterBounds(
    SnapshotPoint bufferPosition
)
TextBounds GetExtendedCharacterBounds(
    SnapshotPoint bufferPosition
)
abstract GetExtendedCharacterBounds : 
        bufferPosition:SnapshotPoint -> TextBounds
function GetExtendedCharacterBounds(
    bufferPosition : SnapshotPoint
) : TextBounds

参数

返回值

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

异常

异常 条件
ArgumentOutOfRangeException

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

备注

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

.NET Framework 安全性

请参阅

参考

ITextViewLine 接口

GetExtendedCharacterBounds 重载

Microsoft.VisualStudio.Text.Formatting 命名空间