ITextViewLineCollection.GetCharacterBounds(SnapshotPoint) 方法

定义

获取指定文本缓冲区位置的文本边界。Gets the text bounds of the specified text buffer position.

public:
 Microsoft::VisualStudio::Text::Formatting::TextBounds GetCharacterBounds(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);
public Microsoft.VisualStudio.Text.Formatting.TextBounds GetCharacterBounds (Microsoft.VisualStudio.Text.SnapshotPoint bufferPosition);
abstract member GetCharacterBounds : Microsoft.VisualStudio.Text.SnapshotPoint -> Microsoft.VisualStudio.Text.Formatting.TextBounds
Public Function GetCharacterBounds (bufferPosition As SnapshotPoint) As TextBounds

参数

bufferPosition
SnapshotPoint

字符的基于文本缓冲区的索引。The text buffer-based index of the character.

返回

TextBounds

矩形 TextBounds 结构。A rectangular TextBounds structure.

例外

bufferPosition 不对应于此行上的位置。bufferPosition does not correspond to a position on this line.

适用于