SpaceNegotiatingAdornmentTag Constructor

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

Namespace:  Microsoft.VisualStudio.Text.Tagging
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

public SpaceNegotiatingAdornmentTag(
	double width,
	double topSpace,
	double baseline,
	double textHeight,
	double bottomSpace,
	PositionAffinity affinity,
	Object identityTag,
	Object providerTag
)

Parameters

width
Type: Double

The width of the tag in pixels.

topSpace
Type: Double

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

baseline
Type: Double

The baseline of the space-negotiating adornment.

textHeight
Type: Double

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

bottomSpace
Type: Double

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

affinity
Type: Microsoft.VisualStudio.Text.PositionAffinity

The PositionAffinity of the space-negotiating adornment.

identityTag
Type: Object

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

providerTag
Type: Object

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft