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
‘선언
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: System.Double
The width of the tag in pixels.
- topSpace
Type: System.Double
The space needed between the top of the text in the ITextViewLine and the top of the ITextViewLine.
- baseline
Type: System.Double
The baseline of the space-negotiating adornment.
- textHeight
Type: System.Double
The height in pixels of the text portion of the space-negotiating adornment.
- bottomSpace
Type: System.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: System.Object
A unique object associated with the space-negotiating adornment, used by GetAdornmentBounds.
- providerTag
Type: System.Object
A unique object identifying the provider of the adornment, used by GetAdornmentTags).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.