ClassFloatingBlockLayoutBox
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
FloatingBlockLayoutBox(DocumentElement, DocumentStructureCollection)
Declaration
public FloatingBlockLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
Parameters
parentElement
collection
Properties
AssociatedFloatingBlock
Gets the associated floating block for the current layout box.
Declaration
public FloatingBlock AssociatedFloatingBlock { get; set; }
Property Value
BaselineOffset
Gets the baseline offset of the floating block layout box.
Declaration
public override float BaselineOffset { get; }
Property Value
Overrides
CanCreateLayoutBoxesFromContent
Declaration
protected override bool CanCreateLayoutBoxesFromContent { get; }
Property Value
Overrides
HasVisualRepresentation
Gets a value indicating whether the floating block layout box has a visual representation.
Declaration
public override bool HasVisualRepresentation { get; }
Property Value
Overrides
HasWidthAtTheEndOfLine
Gets a value indicating whether the floating block layout box has a specified width at the end of the line.
Declaration
public override bool HasWidthAtTheEndOfLine { get; }
Property Value
Overrides
IsReadonly
Gets a value indicating whether the FloatingBlockLayoutBox is in a read-only state.
Declaration
public override bool IsReadonly { get; }
Property Value
Overrides
IsSplittable
Gets a value indicating whether the floating block layout box can be split.
Declaration
public override bool IsSplittable { get; }
Property Value
Overrides
PositionsCountInBox
Gets the count of positions within the floating block layout box.
Declaration
public override int PositionsCountInBox { get; }
Property Value
Overrides
Methods
ArrangeOverride(SizeF)
Arranges the LayoutElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
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
Remarks
In this method call to the Arrange method of each child must be made.
CreateLayoutElement()
Creates a new layout element for the FloatingBlockLayoutBox.
Declaration
public override LayoutElement CreateLayoutElement()
Returns
A layout element that represents the floating block.
Overrides
CreateNewFragment(float, bool)
Creates a new fragment for the floating block layout box.
Declaration
public override LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
Parameters
availableWidth
The width of the new fragment.
isFirstBoxInLine
A boolean value indicating whether the new fragment should be visible.
Returns
A new instance of a fragment with the specified width and visibility.
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.
OnElementStructureChanging()
Declaration
protected override void OnElementStructureChanging()
Overrides
OnParentChanged()
Declaration
protected override void OnParentChanged()
Overrides
ToString()
Returns a string representation of the current instance of the FloatingBlockLayoutBox.
Declaration
public override string ToString()
Returns
A string that represents the current FloatingBlockLayoutBox instance.
Overrides