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
声明
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: 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).
- affinity
Type: System.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
- 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.