ITextViewLine.GetAdornmentBounds(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.