InterLineAdornmentTag Constructor
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.
Initializes a new instance of a InterLineAdornmentTag.
public InterLineAdornmentTag (Microsoft.VisualStudio.Text.Editor.InterLineAdornmentFactory adornmentFactory, bool isAboveLine, double initialHeight, Microsoft.VisualStudio.Text.Editor.HorizontalPositioningMode horizontalPositioningMode, double horizontalOffset, Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback removalCallback = default);
new Microsoft.VisualStudio.Text.Editor.InterLineAdornmentTag : Microsoft.VisualStudio.Text.Editor.InterLineAdornmentFactory * bool * double * Microsoft.VisualStudio.Text.Editor.HorizontalPositioningMode * double * Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback -> Microsoft.VisualStudio.Text.Editor.InterLineAdornmentTag
Public Sub New (adornmentFactory As InterLineAdornmentFactory, isAboveLine As Boolean, initialHeight As Double, horizontalPositioningMode As HorizontalPositioningMode, horizontalOffset As Double, Optional removalCallback As AdornmentRemovedCallback = Nothing)
Parameters
- adornmentFactory
- InterLineAdornmentFactory
A factory to create the adornment for this tag.
- isAboveLine
- Boolean
Whether the adornment is displayed at the top or the bottom of a line.
- initialHeight
- Double
Initial height of the adornment.
- horizontalPositioningMode
- HorizontalPositioningMode
Specifies how the adornment is positioned horizontally on the line.
- horizontalOffset
- Double
Horizontal offset of the adornment with respect to the location defined by horizontalPositioningMode
.
- removalCallback
- AdornmentRemovedCallback
Called when adornment is removed from the view. May be null. May not be null if adornmentFactory
is null.