IAdornment Interface
Provides the base requirements for an adornment that is within an IAdornmentLayer.
public interface IAdornment
Properties
DrawCallback
The callback method that is invoked to draw the adornment.
Location
A System.Windows.Point indicating the current location of the adornment.
Point? Location { get; set; }
Property Value
- Point
RemovedCallback
The callback method that is invoked when the adornment is removed from its parent IAdornmentLayer.
Size
A Size indicating the current size of the adornment.
Size? Size { get; }
Property Value
- Size
SnapshotRange
The nullable TextSnapshotRange that optionally indicates the range of the adornment.
Tag
The object that contains user-defined data about the object.
TrackingModes
A nullable TextRangeTrackingModes indicating the tracking modes to use.
ViewLine
The ITextViewLine with which the adornment is associated, if any.
VisualElement
The UIElement that is used to visually render the adornment.
Methods
Translate(double, double)
Translates the adornment by the specified x- and y-coordinate values.
void Translate(double deltaX, double deltaY)
| Parameter | Type | Description |
|---|---|---|
| deltaX | double | The x-amount by which to move the adornment. |
| deltaY | double | The y-amount by which to move the adornment. |