共用方式為


ITextViewLine.GetAdornmentBounds 方法

計算指定之裝飾的界限。

命名空間:  Microsoft.VisualStudio.Text.Formatting
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Function GetAdornmentBounds ( _
    identityTag As Object _
) As Nullable(Of TextBounds)
Nullable<TextBounds> GetAdornmentBounds(
    Object identityTag
)
Nullable<TextBounds> GetAdornmentBounds(
    Object^ identityTag
)
abstract GetAdornmentBounds : 
        identityTag:Object -> Nullable<TextBounds> 
function GetAdornmentBounds(
    identityTag : Object
) : Nullable<TextBounds>

參數

  • identityTag
    類型:Object

    應計算其界限之裝飾的 IAdornmentElement.IdentityTag。

傳回值

類型:Nullable<TextBounds>
A TextBounds結構,如果此行包含具有指定的裝飾identityTag,否則nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

ITextViewLine 介面

Microsoft.VisualStudio.Text.Formatting 命名空間