Class
InlineLayoutBox

Represents an inline layout box in the Telerik document model. This class is used to manage the layout and rendering of inline elements within a document, ensuring proper positioning and formatting.

Definition

Namespace:Telerik.Windows.Documents.Layout

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public abstract class InlineLayoutBox : LayoutBox

Inheritance: objectLayoutElementLayoutBoxInlineLayoutBox

Derived Classes: AnnotationMarkerLayoutBoxDrawingLayoutBoxSpanLayoutBoxUIElementLayoutBox

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.CreateLayoutElement()LayoutBox.CreateNewFragment(LayoutBox)LayoutBox.InvalidateMeasure()LayoutBox.IsRemovedLayoutBox.IsFragmentLayoutBox.AssociatedDocumentElementLayoutBox.ChildLayoutBoxesLayoutBox.HasVisualRepresentationLayoutBox.IsFormattingSymbolLayoutBox.BoundsChildBoxesLayoutBox.IsFirstBoxLayoutBox.IsLastBoxLayoutBox.IsFirstChildLayoutBox.IsLastChildLayoutBox.IsValidPositionLayoutBox.ParentLayoutBox.ChildIndexLayoutBox.BoundingRectangleLayoutBox.CanCreateLayoutBoxesFromContentLayoutBox.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.OnInvalidateMeasure()LayoutElement.InvalidateMeasure(bool)LayoutElement.InvalidateArrange()LayoutElement.OnInvalidateArrange()LayoutElement.InvalidateArrange(bool)LayoutElement.Arrange(RectangleF)LayoutElement.ArrangeCore(RectangleF)LayoutElement.ArrangeOverride(SizeF)LayoutElement.Measure(SizeF)LayoutElement.MeasureCore(SizeF)LayoutElement.MeasureOverride(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

InlineLayoutBox(DocumentElement)

Declaration

cs-api-definition
public InlineLayoutBox(DocumentElement associatedDocumentElement)

Parameters

associatedDocumentElement

DocumentElement

InlineLayoutBox(DocumentElement, DocumentStructureCollection)

Declaration

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

Parameters

associatedDocumentElement

DocumentElement

collection

DocumentStructureCollection

InlineLayoutBox(DocumentElement, DocumentStructureCollection, bool)

Declaration

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

Parameters

associatedDocumentElement

DocumentElement

collection

DocumentStructureCollection

isFragment

bool

Properties

AssociatedInline

Gets the inline element associated with the layout box.

Declaration

cs-api-definition
public Inline AssociatedInline { get; }

Property Value

Inline

BaselineOffset

Gets the baseline offset of the inline layout box.

Declaration

cs-api-definition
public abstract float BaselineOffset { get; }

Property Value

float

HasWidthAtTheEndOfLine

Gets a value indicating whether the inline layout box has a specified width at the end of the line.

Declaration

cs-api-definition
public abstract bool HasWidthAtTheEndOfLine { get; }

Property Value

bool

IsContainerBox

Gets a value indicating whether this instance is a container box.

Declaration

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

Property Value

bool

true if this instance is a container box; otherwise, false.

Overrides LayoutBox.IsContainerBox

IsReadonly

Gets a value indicating whether the inline layout box is read-only.

Declaration

cs-api-definition
public abstract bool IsReadonly { get; }

Property Value

bool

IsRtl

Gets a value indicating whether the layout box is rendered in right-to-left (RTL) orientation.

Declaration

cs-api-definition
public bool IsRtl { get; }

Property Value

bool

True if the layout box is rendered in RTL orientation; otherwise, false.

IsSplittable

Gets a value indicating whether the layout box can be split across multiple pages or sections.

Declaration

cs-api-definition
public abstract bool IsSplittable { get; }

Property Value

bool

IsStartOfLineSegment

Indicates whether the layout box is the start of a line segment.

Declaration

cs-api-definition
public bool IsStartOfLineSegment { get; }

Property Value

bool

LineInfo

Represents the line information for an inline layout box in the Telerik RadRichTextBox.

Declaration

cs-api-definition
public ParagraphLineInfo LineInfo { get; }

Property Value

ParagraphLineInfo

LineSegmentInfo

Represents information about a line segment in the inline layout box.

Declaration

cs-api-definition
public ParagraphLineSegmentInfo LineSegmentInfo { get; }

Property Value

ParagraphLineSegmentInfo

PositionsCountInBox

Gets the number of positions contained within the inline layout box.

Declaration

cs-api-definition
public abstract int PositionsCountInBox { get; }

Property Value

int

Text

Represents the text content contained within the InlineLayoutBox.

Declaration

cs-api-definition
public abstract string Text { get; set; }

Property Value

string

Methods

CreateNewFragment(float, bool)

Creates a new fragment with the specified width and visibility.

Declaration

cs-api-definition
public virtual LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)

Parameters

availableWidth

float

The width of the fragment to be created.

isFirstBoxInLine

bool

Specifies whether the fragment should be visible.

Returns

LayoutBox

A new instance of a fragment as an InlineLayoutBox.

GetPositionHandler()

Retrieves the position of the inline layout box.

Declaration

cs-api-definition
public override PositionHandler GetPositionHandler()

Returns

PositionHandler

The position of the inline layout box as a Point structure.

Overrides LayoutBox.GetPositionHandler()

MergeWithNext(LayoutBox)

Merges the current InlineLayoutBox with the next LayoutBox if they are compatible.

Declaration

cs-api-definition
public override void MergeWithNext(LayoutBox nextSpanBox)

Parameters

nextSpanBox

LayoutBox

Overrides LayoutBox.MergeWithNext(LayoutBox)

Remove()

Removes the current inline layout box from its parent container.

Declaration

cs-api-definition
public void Remove()