Partager via


IntraTextAdornmentTag Constructor (UIElement, AdornmentRemovedCallback, 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

'Declaration
Public Sub New ( _
    adornment As UIElement, _
    removalCallback As AdornmentRemovedCallback, _
    affinity As Nullable(Of PositionAffinity) _
)
public IntraTextAdornmentTag(
    UIElement adornment,
    AdornmentRemovedCallback removalCallback,
    Nullable<PositionAffinity> affinity
)
public:
IntraTextAdornmentTag(
    UIElement^ adornment, 
    AdornmentRemovedCallback^ removalCallback, 
    Nullable<PositionAffinity> affinity
)
new : 
        adornment:UIElement * 
        removalCallback:AdornmentRemovedCallback * 
        affinity:Nullable<PositionAffinity> -> IntraTextAdornmentTag
public function IntraTextAdornmentTag(
    adornment : UIElement, 
    removalCallback : AdornmentRemovedCallback, 
    affinity : Nullable<PositionAffinity>
)

Parameters

  • adornment
    Type: UIElement

    The adornment to be displayed at the position of the tag. Must not be nulla null reference (Nothing in Visual Basic).

  • affinity
    Type: Nullable<PositionAffinity>

    The affinity of the adornment. Must be nulla null reference (Nothing in Visual Basic) if the adornment has a 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