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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。