SpaceNegotiatingAdornmentTag Class

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Text.Tagging.SpaceNegotiatingAdornmentTag

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

Syntax

'Declaration
Public Class SpaceNegotiatingAdornmentTag _
    Implements ITag
public class SpaceNegotiatingAdornmentTag : ITag
public ref class SpaceNegotiatingAdornmentTag : ITag
type SpaceNegotiatingAdornmentTag =  
    class 
        interface ITag 
    end
public class SpaceNegotiatingAdornmentTag implements ITag

The SpaceNegotiatingAdornmentTag type exposes the following members.

Constructors

  Name Description
Public method SpaceNegotiatingAdornmentTag Initializes a new instance of a SpaceNegotiatingAdornmentTag with the specified properties.

Top

Properties

  Name Description
Public property Affinity Gets the PositionAffinity of the space-negotiating adornment.
Public property Baseline Gets the baseline of the space-negotiating adornment.
Public property BottomSpace Gets the amount of space needed between the bottom of the text in the ITextViewLine and the bottom of the ITextViewLine.
Public property IdentityTag Gets a unique object associated with the space-negotiating adornment, which is used by GetAdornmentBounds.
Public property ProviderTag Gets a unique object that identifies the provider of the adornment.
Public property TextHeight Gets the height of the text portion of the space-negotiating adornment.
Public property TopSpace Gets the amount of space needed between the top of the text in the ITextViewLine and the top of the ITextViewLine.
Public property Width Gets the width of the adornment.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

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

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.

See Also

Reference

Microsoft.VisualStudio.Text.Tagging Namespace