IntraTextAdornmentTag Constructor (UIElement, AdornmentRemovedCallback, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<PositionAffinity>)
Initializes a new instance of a IntraTextAdornmentTag.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
声明
Public Sub New ( _
adornment As UIElement, _
removalCallback As AdornmentRemovedCallback, _
topSpace As Nullable(Of Double), _
baseline As Nullable(Of Double), _
textHeight As Nullable(Of Double), _
bottomSpace As Nullable(Of Double), _
affinity As Nullable(Of PositionAffinity) _
)
public IntraTextAdornmentTag(
UIElement adornment,
AdornmentRemovedCallback removalCallback,
Nullable<double> topSpace,
Nullable<double> baseline,
Nullable<double> textHeight,
Nullable<double> bottomSpace,
Nullable<PositionAffinity> affinity
)
public:
IntraTextAdornmentTag(
UIElement^ adornment,
AdornmentRemovedCallback^ removalCallback,
Nullable<double> topSpace,
Nullable<double> baseline,
Nullable<double> textHeight,
Nullable<double> bottomSpace,
Nullable<PositionAffinity> affinity
)
new :
adornment:UIElement *
removalCallback:AdornmentRemovedCallback *
topSpace:Nullable<float> *
baseline:Nullable<float> *
textHeight:Nullable<float> *
bottomSpace:Nullable<float> *
affinity:Nullable<PositionAffinity> -> IntraTextAdornmentTag
public function IntraTextAdornmentTag(
adornment : UIElement,
removalCallback : AdornmentRemovedCallback,
topSpace : Nullable<double>,
baseline : Nullable<double>,
textHeight : Nullable<double>,
bottomSpace : Nullable<double>,
affinity : Nullable<PositionAffinity>
)
Parameters
- adornment
Type: System.Windows.UIElement
The adornment to be displayed at the position of the tag. Must not be nulla null reference (Nothing in Visual Basic).
- removalCallback
Type: Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback
Called when adornment is removed from the view. May be nulla null reference (Nothing in Visual Basic).
- topSpace
Type: System.Nullable<Double>
The amount of space that is required between the top of the text in the ITextViewLine and the top of the ITextViewLine.
- baseline
Type: System.Nullable<Double>
The baseline of the space-negotiating adornment.
- textHeight
Type: System.Nullable<Double>
The height of the text portion of the space-negotiating adornment.
- bottomSpace
Type: System.Nullable<Double>
The amount of space that is required between the bottom of the text in the ITextViewLine and the bottom of the ITextViewLine.
- affinity
Type: System.Nullable<PositionAffinity>
The affinity of the adornment. Must be nulla null reference (Nothing in Visual Basic) if the adornment has a non-zero-length span in the text buffer of the view.
.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.