IntraTextAdornmentTag Class
Represents a tag that provides adornments to be interspersed with text.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaration
Public Class IntraTextAdornmentTag _
Implements ITag
public class IntraTextAdornmentTag : ITag
public ref class IntraTextAdornmentTag : ITag
type IntraTextAdornmentTag =
class
interface ITag
end
public class IntraTextAdornmentTag implements ITag
The IntraTextAdornmentTag type exposes the following members.
Constructors
Name | Description | |
---|---|---|
IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback) | Initializes a new instance of a IntraTextAdornmentTag. | |
IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<PositionAffinity>) | Initializes a new instance of a IntraTextAdornmentTag. | |
IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<PositionAffinity>) | Initializes a new instance of a IntraTextAdornmentTag. |
Top
Properties
Name | Description | |
---|---|---|
Adornment | Gets the adornment to be displayed at the position of the tag. Must not be nulla null reference (Nothing in Visual Basic). | |
Affinity | Gets the PositionAffinity of the space-negotiating adornment. | |
Baseline | Gets the baseline of the space-negotiating adornment. | |
BottomSpace | Gets the amount of space that is required between the bottom of the text in the ITextViewLine and the bottom of the ITextViewLine. | |
RemovalCallback | Called when adornment is removed from the view. May be nulla null reference (Nothing in Visual Basic). | |
TextHeight | Gets the height of the text portion of the space-negotiating adornment. | |
TopSpace | Gets the amount of space that is required between the top of the text in the ITextViewLine and the top of the ITextViewLine. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The tag span is elided from the view and that text is replaced by the adornment that is provided by this tag.
The aggregator for these tags is created on a per-view basis, and handles text hiding, the production of SpaceNegotiatingAdornmentTag objects, and the positioning of adornments on the adornment layer.
This works only for views that have the Structured view role.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.