Partager via


IntraTextAdornmentTag Constructor (UIElement, AdornmentRemovedCallback)

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

'Déclaration
Public Sub New ( _
    adornment As UIElement, _
    removalCallback As AdornmentRemovedCallback _
)
public IntraTextAdornmentTag(
    UIElement adornment,
    AdornmentRemovedCallback removalCallback
)
public:
IntraTextAdornmentTag(
    UIElement^ adornment, 
    AdornmentRemovedCallback^ removalCallback
)
new : 
        adornment:UIElement * 
        removalCallback:AdornmentRemovedCallback -> IntraTextAdornmentTag
public function IntraTextAdornmentTag(
    adornment : UIElement, 
    removalCallback : AdornmentRemovedCallback
)

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

Remarks

Use this constructor only for adornments that replace text in the text buffer of the view.

.NET Framework Security

See Also

Reference

IntraTextAdornmentTag Class

IntraTextAdornmentTag Overload

Microsoft.VisualStudio.Text.Editor Namespace