Share via


ITextViewLine.GetAdornmentBounds(Object) Method

Definition

Calculates the bounds of the specified adornment.

public:
 Nullable<Microsoft::VisualStudio::Text::Formatting::TextBounds> GetAdornmentBounds(System::Object ^ identityTag);
public Microsoft.VisualStudio.Text.Formatting.TextBounds? GetAdornmentBounds (object identityTag);
abstract member GetAdornmentBounds : obj -> Nullable<Microsoft.VisualStudio.Text.Formatting.TextBounds>
Public Function GetAdornmentBounds (identityTag As Object) As Nullable(Of TextBounds)

Parameters

identityTag
Object

The IAdornmentElement.IdentityTag of the adornment whose bounds should be calculated.

Returns

A TextBounds structure if this line contains an adornment with the specified identityTag, otherwise null.

Applies to