다음을 통해 공유


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).
  • textHeight
    Type: System.Nullable<Double>
    The height of the text portion of the space-negotiating adornment.
  • 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

See Also

Reference

IntraTextAdornmentTag Class

IntraTextAdornmentTag Overload

Microsoft.VisualStudio.Text.Editor Namespace