Class FloatingBlockLayoutBox
Represents a layout box for a floating block in the Telerik document layout.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Layout
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class FloatingBlockLayoutBox : AnnotationMarkerLayoutBox
Constructors
FloatingBlockLayoutBox(DocumentElement, DocumentStructureCollection)
Declaration
public FloatingBlockLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
Parameters
DocumentElement
parentElement
|
DocumentStructureCollection
collection
|
Properties
AssociatedFloatingBlock
Gets the associated floating block for the current layout box.
Declaration
public FloatingBlock AssociatedFloatingBlock { get; set; }
Property Value
FloatingBlock
|
BaselineOffset
Gets the baseline offset of the floating block layout box.
Declaration
public override float BaselineOffset { get; }
Property Value
System.Single
|
Overrides
CanCreateLayoutBoxesFromContent
Declaration
protected override bool CanCreateLayoutBoxesFromContent { get; }
Property Value
System.Boolean
|
Overrides
HasVisualRepresentation
Gets a value indicating whether the floating block layout box has a visual representation.
Declaration
public override bool HasVisualRepresentation { get; }
Property Value
System.Boolean
|
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
System.Boolean
|
Overrides
IsReadonly
Gets a value indicating whether the FloatingBlockLayoutBox is in a read-only state.
Declaration
public override bool IsReadonly { get; }
Property Value
System.Boolean
|
Overrides
IsSplittable
Gets a value indicating whether the floating block layout box can be split.
Declaration
public override bool IsSplittable { get; }
Property Value
System.Boolean
|
Overrides
PositionsCountInBox
Gets the count of positions within the floating block layout box.
Declaration
public override int PositionsCountInBox { get; }
Property Value
System.Int32
|
Overrides
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
SizeF
finalSize
|
Returns
SizeF
|
Overrides
CreateLayoutElement()
Creates a new layout element for the FloatingBlockLayoutBox.
Declaration
public override LayoutElement CreateLayoutElement()
Returns
LayoutElement
A layout element that represents the floating block. |
Overrides
CreateNewFragment(Single, Boolean)
Creates a new fragment for the floating block layout box.
Declaration
public override LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
Parameters
System.Single
availableWidth
The width of the new fragment. |
System.Boolean
isFirstBoxInLine
A boolean value indicating whether the new fragment should be visible. |
Returns
LayoutBox
A new instance of a fragment with the specified width and visibility. |
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
SizeF
availableSize
|
Returns
SizeF
|
Overrides
OnElementStructureChanging()
Declaration
protected override void OnElementStructureChanging()
Overrides
OnParentChanged()
ToString()
Returns a string representation of the current instance of the FloatingBlockLayoutBox.
Declaration
public override string ToString()
Returns
System.String
A string that represents the current FloatingBlockLayoutBox instance. |