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)

public:
IntraTextAdornmentTag(
	UIElement^ adornment,
	AdornmentRemovedCallback^ removalCallback,
	Nullable<PositionAffinity> affinity
)

Parameters

adornment
Type: System.Windows::UIElement^

The adornment to be displayed at the position of the tag. Must not be null.

removalCallback
Type: Microsoft.VisualStudio.Text.Editor::AdornmentRemovedCallback^

Called when adornment is removed from the view. May be null.

affinity
Type: System::Nullable<PositionAffinity>

The affinity of the adornment. Must be null if and only if the adornment has a non-zero-length span at the view's text buffer.

Return to top
Show: