SpaceNegotiatingAdornmentTag Constructor

Definition

Initializes a new instance of a SpaceNegotiatingAdornmentTag with the specified properties.

public:
 SpaceNegotiatingAdornmentTag(double width, double topSpace, double baseline, double textHeight, double bottomSpace, Microsoft::VisualStudio::Text::PositionAffinity affinity, System::Object ^ identityTag, System::Object ^ providerTag);
public:
 SpaceNegotiatingAdornmentTag(double width, double topSpace, double baseline, double textHeight, double bottomSpace, Microsoft::VisualStudio::Text::PositionAffinity affinity, Platform::Object ^ identityTag, Platform::Object ^ providerTag);
 SpaceNegotiatingAdornmentTag(double width, double topSpace, double baseline, double textHeight, double bottomSpace, Microsoft::VisualStudio::Text::PositionAffinity affinity, winrt::Windows::Foundation::IInspectable const & identityTag, winrt::Windows::Foundation::IInspectable const & providerTag);
public SpaceNegotiatingAdornmentTag (double width, double topSpace, double baseline, double textHeight, double bottomSpace, Microsoft.VisualStudio.Text.PositionAffinity affinity, object identityTag, object providerTag);
new Microsoft.VisualStudio.Text.Tagging.SpaceNegotiatingAdornmentTag : double * double * double * double * double * Microsoft.VisualStudio.Text.PositionAffinity * obj * obj -> Microsoft.VisualStudio.Text.Tagging.SpaceNegotiatingAdornmentTag
Public Sub New (width As Double, topSpace As Double, baseline As Double, textHeight As Double, bottomSpace As Double, affinity As PositionAffinity, identityTag As Object, providerTag As Object)

Parameters

width
Double

The width of the tag in pixels.

topSpace
Double

The space needed between the top of the text in the ITextViewLine and the top of the ITextViewLine.

baseline
Double

The baseline of the space-negotiating adornment.

textHeight
Double

The height in pixels of the text portion of the space-negotiating adornment.

bottomSpace
Double

The space needed between the bottom of the text in the ITextViewLine and the botton of the ITextViewLine.

affinity
PositionAffinity

The PositionAffinity of the space-negotiating adornment.

identityTag
Object

A unique object associated with the space-negotiating adornment, used by ITextViewLine.GetAdornmentBounds.

providerTag
Object

A unique object identifying the provider of the adornment, used by GetAdornmentTags(Object)).

Applies to