ClassAnnotationMarkerLayoutBox
Represents the layout box for annotation markers within the Telerik document model.
Definition
Namespace:Telerik.Windows.Documents.Layout
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class AnnotationMarkerLayoutBox : InlineLayoutBox
Inheritance: objectLayoutElementLayoutBoxInlineLayoutBoxAnnotationMarkerLayoutBox
Derived Classes:
Inherited Members
Constructors
AnnotationMarkerLayoutBox(DocumentElement, DocumentStructureCollection)
Declaration
public AnnotationMarkerLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters
associatedDocumentElement
collection
Properties
AssociatedAnnotationMarker
Gets the associated annotation marker for the layout box.
Declaration
public AnnotationMarkerBase AssociatedAnnotationMarker { get; }
Property Value
BaselineOffset
Gets the baseline offset for the annotation marker layout box.
Declaration
public override float BaselineOffset { get; }
Property Value
Overrides
HasVisualRepresentation
Gets a value indicating whether the annotation marker has a visual representation.
Declaration
public override bool HasVisualRepresentation { get; }
Property Value
Overrides
HasWidthAtTheEndOfLine
Determines whether the annotation marker layout box has a width at the end of the line.
Declaration
public override bool HasWidthAtTheEndOfLine { get; }
Property Value
Overrides
IsReadonly
Gets a value indicating whether the annotation marker layout box is read-only.
Declaration
public override bool IsReadonly { get; }
Property Value
Overrides
IsSplittable
Gets a value indicating whether the annotation marker layout box can be split.
Declaration
public override bool IsSplittable { get; }
Property Value
Overrides
PositionsCountInBox
Gets the count of positions within the annotation marker layout box.
Declaration
public override int PositionsCountInBox { get; }
Property Value
Overrides
Methods
CreateLayoutElement()
Creates a layout element for the annotation marker.
Declaration
public override LayoutElement CreateLayoutElement()
Returns
A new instance of the layout element associated with the annotation marker.
Overrides
MeasureOverride(SizeF)
Measures the space required by the LayoutElement Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the LayoutElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.