Class ParagraphLayoutBox
Represents a layout box for a paragraph in the RadRichTextBox.
Inherited Members
Namespace: Telerik.Windows.Documents.Layout
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class ParagraphLayoutBox : LayoutBox
Constructors
ParagraphLayoutBox(DocumentElement, DocumentStructureCollection)
Declaration
public ParagraphLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters
DocumentElement
associatedDocumentElement
|
DocumentStructureCollection
collection
|
ParagraphLayoutBox(DocumentElement, DocumentStructureCollection, Boolean)
Declaration
public ParagraphLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
Parameters
DocumentElement
associatedDocumentElement
|
DocumentStructureCollection
collection
|
System.Boolean
isFragment
|
Properties
AssociatedParagraph
Gets the paragraph associated with this layout box.
Declaration
public Paragraph AssociatedParagraph { get; }
Property Value
Paragraph
|
CanCreateLayoutBoxesFromContent
Declaration
protected override bool CanCreateLayoutBoxesFromContent { get; }
Property Value
System.Boolean
|
Overrides
HasVisualRepresentation
Gets a value indicating whether the paragraph layout box has a visual representation.
Declaration
public override bool HasVisualRepresentation { get; }
Property Value
System.Boolean
|
Overrides
LineCount
Gets the number of lines in the paragraph layout box.
Declaration
public int LineCount { get; }
Property Value
System.Int32
|
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
SizeF
finalSize
|
Returns
SizeF
|
Overrides
CreateLayoutBoxesFromContent()
Declaration
protected void CreateLayoutBoxesFromContent()
CreateLayoutElement()
Creates a layout element for the paragraph within the layout box.
Declaration
public override LayoutElement CreateLayoutElement()
Returns
LayoutElement
|
Overrides
CreateNewFragment(LayoutBox)
Creates a new fragment within the specified layout box.
Declaration
public override void CreateNewFragment(LayoutBox currentLineStartNode)
Parameters
LayoutBox
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
PositionHandler
A System.Drawing.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)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
SizeF
availableSize
|
Returns
SizeF
|
Overrides
OnInvalidateMeasure()
Declaration
protected override void OnInvalidateMeasure()