Partager via


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)

Syntax

'Declaration
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 _
)
public SpaceNegotiatingAdornmentTag(
    double width,
    double topSpace,
    double baseline,
    double textHeight,
    double bottomSpace,
    PositionAffinity affinity,
    Object identityTag,
    Object providerTag
)
public:
SpaceNegotiatingAdornmentTag(
    double width, 
    double topSpace, 
    double baseline, 
    double textHeight, 
    double bottomSpace, 
    PositionAffinity affinity, 
    Object^ identityTag, 
    Object^ providerTag
)
new : 
        width:float * 
        topSpace:float * 
        baseline:float * 
        textHeight:float * 
        bottomSpace:float * 
        affinity:PositionAffinity * 
        identityTag:Object * 
        providerTag:Object -> SpaceNegotiatingAdornmentTag
public function SpaceNegotiatingAdornmentTag(
    width : double, 
    topSpace : double, 
    baseline : double, 
    textHeight : double, 
    bottomSpace : double, 
    affinity : PositionAffinity, 
    identityTag : Object, 
    providerTag : Object
)

Parameters

  • width
    Type: Double

    The width of the tag in pixels.

  • 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.

  • 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).

.NET Framework Security

See Also

Reference

SpaceNegotiatingAdornmentTag Class

Microsoft.VisualStudio.Text.Tagging Namespace