SpaceNegotiatingAdornmentTag Class

Definition

Represents a tag for a space-negotiating adornment. The tag is used to provide space for positioning the adornment in a view.

public class SpaceNegotiatingAdornmentTag : Microsoft.VisualStudio.Text.Tagging.ITag
Inheritance
SpaceNegotiatingAdornmentTag
Implements

Remarks

The units used in properties like Width and TopSpace are in pixels.

Constructors

SpaceNegotiatingAdornmentTag(Double, Double, Double, Double, Double, PositionAffinity, Object, Object)

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

Properties

Affinity

Gets the PositionAffinity of the space-negotiating adornment.

Baseline

Gets the baseline of the space-negotiating adornment.

BottomSpace

Gets the amount of space needed between the bottom of the text in the ITextViewLine and the bottom of the ITextViewLine.

IdentityTag

Gets a unique object associated with the space-negotiating adornment, which is used by GetAdornmentBounds(Object).

ProviderTag

Gets a unique object that identifies the provider of the adornment.

TextHeight

Gets the height of the text portion of the space-negotiating adornment.

TopSpace

Gets the amount of space needed between the top of the text in the ITextViewLine and the top of the ITextViewLine.

Width

Gets the width of the adornment.

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to