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 Point indicating the current location of the adornment.
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.
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 IUIElement that is used to visually render the adornment.
Methods
Translate(int, int)
Translates the adornment by the specified x- and y-coordinate values.
void Translate(int deltaX, int deltaY)
| Parameter | Type | Description |
|---|---|---|
| deltaX | int | The x-amount by which to move the adornment. |
| deltaY | int | The y-amount by which to move the adornment. |