Represents a layout box for a floating block in the Telerik document layout.
Definition
Namespace:Telerik.Windows.Documents.Layout
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class FloatingBlockLayoutBox : AnnotationMarkerLayoutBox
Inheritance: objectLayoutElementLayoutBoxInlineLayoutBoxAnnotationMarkerLayoutBoxFloatingBlockLayoutBox...
Inherited Members
Constructors
public FloatingBlockLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
Properties
Gets the associated floating block for the current layout box.
public FloatingBlock AssociatedFloatingBlock { get; set; }
Gets the baseline offset of the floating block layout box.
public override float BaselineOffset { get; }
Overrides:
protected override bool CanCreateLayoutBoxesFromContent { get; }
Overrides:
Gets a value indicating whether the floating block layout box has a visual representation.
public override bool HasVisualRepresentation { get; }
Overrides:
Gets a value indicating whether the floating block layout box has a specified width at the end of the line.
public override bool HasWidthAtTheEndOfLine { get; }
Overrides:
Gets a value indicating whether the FloatingBlockLayoutBox is in a read-only state.
public override bool IsReadonly { get; }
Overrides:
Gets a value indicating whether the floating block layout box can be split.
public override bool IsSplittable { get; }
Overrides:
Gets the count of positions within the floating block layout box.
public override int PositionsCountInBox { get; }
Overrides:
Methods
Arranges the LayoutElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF finalSize)
The size that is available for element.
Returns:The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides:
In this method call to the Arrange method of each child must be made.
Creates a new layout element for the FloatingBlockLayoutBox.
public override LayoutElement CreateLayoutElement()
A layout element that represents the floating block.
Overrides:
Creates a new fragment for the floating block layout box.
public override LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
The width of the new fragment.
isFirstBoxInLineboolA boolean value indicating whether the new fragment should be visible.
Returns:A new instance of a fragment with the specified width and visibility.
Overrides:
Measures the space required by the LayoutElement Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
protected override void OnElementStructureChanging()
Overrides:
protected override void OnParentChanged()
Overrides:
Returns a string representation of the current instance of the FloatingBlockLayoutBox.
public override string ToString()
A string that represents the current FloatingBlockLayoutBox instance.
Overrides: