ClassParagraphLayoutBox
Represents a layout box for a paragraph in the RadRichTextBox.
Definition
Namespace:Telerik.Windows.Documents.Layout
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class ParagraphLayoutBox : LayoutBox
Inheritance: objectLayoutElementLayoutBoxParagraphLayoutBox
Inherited Members
Constructors
ParagraphLayoutBox(DocumentElement, DocumentStructureCollection)
Declaration
public ParagraphLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters
associatedDocumentElement
collection
ParagraphLayoutBox(DocumentElement, DocumentStructureCollection, bool)
Declaration
public ParagraphLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
Parameters
associatedDocumentElement
collection
isFragment
Properties
AssociatedParagraph
Gets the paragraph associated with this layout box.
Declaration
public Paragraph AssociatedParagraph { get; }
Property Value
CanCreateLayoutBoxesFromContent
Declaration
protected override bool CanCreateLayoutBoxesFromContent { get; }
Property Value
Overrides
HasVisualRepresentation
Gets a value indicating whether the paragraph layout box has a visual representation.
Declaration
public override bool HasVisualRepresentation { 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.
CreateLayoutBoxesFromContent()
Declaration
protected void CreateLayoutBoxesFromContent()
CreateLayoutElement()
Creates a layout element for the paragraph within the layout box.
Declaration
public override LayoutElement CreateLayoutElement()
Returns
Overrides
CreateNewFragment(LayoutBox)
Creates a new fragment within the specified layout box.
Declaration
public override void CreateNewFragment(LayoutBox currentLineStartNode)
Parameters
currentLineStartNode
The layout box in which the new fragment will be created.
Overrides
GetPositionHandler()
Retrieves the position of the layout box for the current paragraph.
Declaration
public override PositionHandler GetPositionHandler()
Returns
A Point representing the position of the paragraph layout box.
Overrides
InvalidateLongWordsFragmentation()
Invalidates the long words fragmentation for the paragraph layout box. This method recalculates the layout of the paragraph to ensure that long words are rendered correctly, avoiding overflow and maintaining the visual integrity of the text.
Declaration
public void InvalidateLongWordsFragmentation()
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.
OnInvalidateMeasure()
Declaration
protected override void OnInvalidateMeasure()
Overrides