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).
- removalCallback
Type: Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback
Called when adornment is removed from the view. May 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
- 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.