ITextViewLine.GetCharacterBounds 方法 (SnapshotPoint)

计算指定缓冲区位置处的字符的边界。

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

语法

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

参数

返回值

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

异常

异常 条件
ArgumentOutOfRangeException

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

备注

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

.NET Framework 安全性

请参阅

参考

ITextViewLine 接口

GetCharacterBounds 重载

Microsoft.VisualStudio.Text.Formatting 命名空间