SpaceNegotiatingAdornmentTag 构造函数

使用指定属性初始化 SpaceNegotiatingAdornmentTag 的新实例。

命名空间:  Microsoft.VisualStudio.Text.Tagging
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
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
)

参数

  • width
    类型:Double

    标记的宽度(以像素为单位)。

  • baseline
    类型:Double

    空间协调修饰的基线。

  • textHeight
    类型:Double

    空间协调修饰的文本部分的高度(以像素为单位)。

  • identityTag
    类型:Object

    单个对象与空间协调修饰,使用该 GetAdornmentBounds

  • providerTag
    类型:Object

    GetAdornmentTags 用于标识修饰提供程序的唯一对象。

.NET Framework 安全性

请参阅

参考

SpaceNegotiatingAdornmentTag 类

Microsoft.VisualStudio.Text.Tagging 命名空间