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
參數
bufferPosition
類型:Microsoft.VisualStudio.Text.SnapshotPoint以文字緩衝區為基礎的字元索引。
傳回值
類型:Microsoft.VisualStudio.Text.Formatting.TextBounds
TextBounds 結構。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentOutOfRangeException | bufferPosition沒有對應到在此線路上的位置。 |
備註
雙向文字有位於其尾端邊緣] 旁的前緣。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。