ITextViewLine.GetAdornmentBounds Method
Calculates the bounds of the specified adornment.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'宣告
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>
Parameters
- identityTag
Type: System.Object
The IAdornmentElement.IdentityTag of the adornment whose bounds should be calculated.
Return Value
Type: System.Nullable<TextBounds>
A TextBounds structure if this line contains an adornment with the specified identityTag, otherwise nulla null reference (Nothing in Visual Basic).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.