Partilhar via


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

'Declaração
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

See Also

Reference

ITextViewLine Interface

Microsoft.VisualStudio.Text.Formatting Namespace