Represents a zero-text annotation anchor that occupies one document position and is rendered by annotation-specific UI layers.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class AnnotationMarkerLayoutBox : InlineLayoutBox, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxInlineLayoutBoxAnnotationMarkerLayoutBox...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates an annotation marker box for a document element.
public AnnotationMarkerLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
The annotation marker represented by the box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
Properties
Gets the annotation marker represented by this inline box, or null if the associated document element is null.
public AnnotationMarkerBase AssociatedAnnotationMarker { get; }
The associated document element is non-null and is not an annotation marker.
Gets the line baseline offset when this marker has been assigned to a line, or 0 before assignment.
public override float BaselineOffset { get; }
Overrides:
Gets whether this box itself has a visual representation. Annotation visuals are supplied by separate UI layers.
public override bool HasVisualRepresentation { get; }
Overrides:
Gets whether the anchor contributes width at the end of a line.
public override bool HasWidthAtTheEndOfLine { get; }
Overrides:
Gets whether the annotation anchor is read-only as inline text.
public override bool IsReadonly { get; }
Overrides:
Gets whether this marker can be split into line fragments; annotation markers are indivisible anchors.
public override bool IsSplittable { get; }
Overrides:
Gets the single document position occupied by this annotation marker.
public override int PositionsCountInBox { get; }
Overrides:
Gets an empty string because annotation markers do not contribute text. Setting this property is unsupported.
public override string Text { get; set; }
The setter is called.
Overrides:
Methods
Annotation markers cannot be duplicated as layout fragments.
public override LayoutElement CreateLayoutElement()
This method does not return.
Exceptions: NotSupportedExceptionA layout element is requested from an annotation marker.
Overrides:
Measures the annotation anchor to a minimal nonzero size; its visible decoration is rendered separately.