Class
ParagraphLayoutBox

Represents a layout box for a paragraph in the RadRichTextBox.

Definition

Namespace:Telerik.Windows.Documents.Layout

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ParagraphLayoutBox : LayoutBox

Inheritance: objectLayoutElementLayoutBoxParagraphLayoutBox

Inherited Members LayoutBox.currentYLayoutBox.AssociatedLayoutBoxPropertyLayoutBox.NodeLayoutBox.GetAssociatedLayoutBox(UIElement)LayoutBox.SetAssociatedLayoutBox(UIElement, LayoutBox)LayoutBox.OnElementStructureChanging()LayoutBox.OnElementStructureChanged()LayoutBox.OnAssociateDocumentElementChanged()LayoutBox.CreateChildrenCollection(DocumentStructureCollection)LayoutBox.ToString()LayoutBox.InvalidateMeasureUpToTheRoot()LayoutBox.InvalidateMeasureUpToTheRootStable()LayoutBox.InvalidateArrangeUpToTheRoot()LayoutBox.InvalidateLayoutAfterEdit()LayoutBox.ValidateChild(LayoutBox)LayoutBox.GetRootDocument()LayoutBox.CanGrowVerticallyOverride(float)LayoutBox.CanGrowVertically(float)LayoutBox.GetBoxDesiredGrow()LayoutBox.MergeWithNext(LayoutBox)LayoutBox.InvalidateMeasure()LayoutBox.IsRemovedLayoutBox.IsFragmentLayoutBox.AssociatedDocumentElementLayoutBox.ChildLayoutBoxesLayoutBox.IsFormattingSymbolLayoutBox.BoundsChildBoxesLayoutBox.IsFirstBoxLayoutBox.IsLastBoxLayoutBox.IsFirstChildLayoutBox.IsLastChildLayoutBox.IsValidPositionLayoutBox.ParentLayoutBox.ChildIndexLayoutBox.BoundingRectangleLayoutBox.IsContainerBoxLayoutBox.ElementStructureChangingLayoutBox.ElementStructureChangedLayoutElement.EnsureChildrenCreated()LayoutElement.CreateChildren()LayoutElement.OnBitStateChanged(DocumentElementStates, bool, bool)LayoutElement.SetBitState(DocumentElementStates, bool)LayoutElement.ValidateParent(LayoutElement)LayoutElement.SetParent(LayoutElement, LayoutElement)LayoutElement.SetParentCore(LayoutElement)LayoutElement.IsInValidState(bool)LayoutElement.InvalidateMeasure(bool)LayoutElement.InvalidateArrange()LayoutElement.OnInvalidateArrange()LayoutElement.InvalidateArrange(bool)LayoutElement.Arrange(RectangleF)LayoutElement.ArrangeCore(RectangleF)LayoutElement.Measure(SizeF)LayoutElement.MeasureCore(SizeF)LayoutElement.OnChildDesiredSizeChanged(LayoutElement)LayoutElement.OnParentChanging()LayoutElement.OnParentChanged()LayoutElement.LayoutOffsetLayoutElement.IsTopContainerLayoutElement.LocalBoundingRectangleLayoutElement.ControlBoundingRectangleLayoutElement.ClippedControlBoundingRectangleLayoutElement.TotalTransformLayoutElement.ChildrenLayoutElement.BitStateLayoutElement.DesiredSizeLayoutElement.IsMeasureInProgressLayoutElement.BypassLayoutPoliciesLayoutElement.MeasureWithoutParentNotificationLayoutElement.SizeLayoutElement.IsArrangeValidLayoutElement.IsMeasureValidLayoutElement.TreeLevelLayoutElement.PreviousArrangeRectLayoutElement.AlignmentLayoutElement.AutoSizeLayoutElement.TransformLayoutElement.ParentChangingLayoutElement.ParentChanged

Constructors

ParagraphLayoutBox(DocumentElement, DocumentStructureCollection)

Declaration

cs-api-definition
public ParagraphLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)

Parameters

associatedDocumentElement

DocumentElement

collection

DocumentStructureCollection

ParagraphLayoutBox(DocumentElement, DocumentStructureCollection, bool)

Declaration

cs-api-definition
public ParagraphLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)

Parameters

associatedDocumentElement

DocumentElement

collection

DocumentStructureCollection

isFragment

bool

Properties

AssociatedParagraph

Gets the paragraph associated with this layout box.

Declaration

cs-api-definition
public Paragraph AssociatedParagraph { get; }

Property Value

Paragraph

CanCreateLayoutBoxesFromContent

Declaration

cs-api-definition
protected override bool CanCreateLayoutBoxesFromContent { get; }

Property Value

bool

Overrides LayoutBox.CanCreateLayoutBoxesFromContent

HasVisualRepresentation

Gets a value indicating whether the paragraph layout box has a visual representation.

Declaration

cs-api-definition
public override bool HasVisualRepresentation { get; }

Property Value

bool

Overrides LayoutBox.HasVisualRepresentation

LineCount

Gets the number of lines in the paragraph layout box.

Declaration

cs-api-definition
public int LineCount { get; }

Property Value

int

Methods

ArrangeOverride(SizeF)

Arranges the LayoutElement to its final location. The element must call the Arrange method of each of its children.

Declaration

cs-api-definition
protected override SizeF ArrangeOverride(SizeF finalSize)

Parameters

finalSize

SizeF

The size that is available for element.

Returns

SizeF

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 LayoutElement.ArrangeOverride(SizeF)

Remarks

In this method call to the Arrange method of each child must be made.

CreateLayoutBoxesFromContent()

Declaration

cs-api-definition
protected void CreateLayoutBoxesFromContent()

CreateLayoutElement()

Creates a layout element for the paragraph within the layout box.

Declaration

cs-api-definition
public override LayoutElement CreateLayoutElement()

Returns

LayoutElement

Overrides LayoutBox.CreateLayoutElement()

CreateNewFragment(LayoutBox)

Creates a new fragment within the specified layout box.

Declaration

cs-api-definition
public override void CreateNewFragment(LayoutBox currentLineStartNode)

Parameters

currentLineStartNode

LayoutBox

The layout box in which the new fragment will be created.

Overrides LayoutBox.CreateNewFragment(LayoutBox)

GetPositionHandler()

Retrieves the position of the layout box for the current paragraph.

Declaration

cs-api-definition
public override PositionHandler GetPositionHandler()

Returns

PositionHandler

A Point representing the position of the paragraph layout box.

Overrides LayoutBox.GetPositionHandler()

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

cs-api-definition
public void InvalidateLongWordsFragmentation()

MeasureOverride(SizeF)

Measures the space required by the LayoutElement Used by the layout system.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The size that is available to the LayoutElement. The available size can be infinity (to take the full size of the element)

Returns

SizeF

The minimum size required by the element to be completely visible. Cannot be infinity.

Overrides LayoutElement.MeasureOverride(SizeF)

Remarks

In this method call to the Measure method of each child must be made.

OnInvalidateMeasure()

Declaration

cs-api-definition
protected override void OnInvalidateMeasure()

Overrides LayoutElement.OnInvalidateMeasure()