共用方式為


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 命名空間