skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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.

Inheritance
System.Object
LayoutElement
LayoutBox
InlineLayoutBox
AnnotationMarkerLayoutBox
DrawingLayoutBox
SpanLayoutBox
UIElementLayoutBox
Inherited Members
LayoutBox.currentY
LayoutBox.AssociatedLayoutBoxProperty
LayoutBox.Node
LayoutBox.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(Single)
LayoutBox.CanGrowVertically(Single)
LayoutBox.GetBoxDesiredGrow()
LayoutBox.CreateLayoutElement()
LayoutBox.CreateNewFragment(LayoutBox)
LayoutBox.InvalidateMeasure()
LayoutBox.IsRemoved
LayoutBox.IsFragment
LayoutBox.AssociatedDocumentElement
LayoutBox.ChildLayoutBoxes
LayoutBox.HasVisualRepresentation
LayoutBox.IsFormattingSymbol
LayoutBox.BoundsChildBoxes
LayoutBox.IsFirstBox
LayoutBox.IsLastBox
LayoutBox.IsFirstChild
LayoutBox.IsLastChild
LayoutBox.IsValidPosition
LayoutBox.Parent
LayoutBox.ChildIndex
LayoutBox.BoundingRectangle
LayoutBox.CanCreateLayoutBoxesFromContent
LayoutBox.ElementStructureChanging
LayoutBox.ElementStructureChanged
LayoutElement.EnsureChildrenCreated()
LayoutElement.CreateChildren()
LayoutElement.OnBitStateChanged(DocumentElementStates, Boolean, Boolean)
LayoutElement.SetBitState(DocumentElementStates, Boolean)
LayoutElement.ValidateParent(LayoutElement)
LayoutElement.SetParent(LayoutElement, LayoutElement)
LayoutElement.SetParentCore(LayoutElement)
LayoutElement.IsInValidState(Boolean)
LayoutElement.OnInvalidateMeasure()
LayoutElement.InvalidateMeasure(Boolean)
LayoutElement.InvalidateArrange()
LayoutElement.OnInvalidateArrange()
LayoutElement.InvalidateArrange(Boolean)
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.LayoutOffset
LayoutElement.IsTopContainer
LayoutElement.LocalBoundingRectangle
LayoutElement.ControlBoundingRectangle
LayoutElement.ClippedControlBoundingRectangle
LayoutElement.TotalTransform
LayoutElement.Children
LayoutElement.BitState
LayoutElement.DesiredSize
LayoutElement.IsMeasureInProgress
LayoutElement.BypassLayoutPolicies
LayoutElement.MeasureWithoutParentNotification
LayoutElement.Size
LayoutElement.IsArrangeValid
LayoutElement.IsMeasureValid
LayoutElement.TreeLevel
LayoutElement.PreviousArrangeRect
LayoutElement.Alignment
LayoutElement.AutoSize
LayoutElement.Transform
LayoutElement.ParentChanging
LayoutElement.ParentChanged
Namespace: Telerik.Windows.Documents.Layout
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public abstract class InlineLayoutBox : LayoutBox

Constructors

InlineLayoutBox(DocumentElement)

Declaration
public InlineLayoutBox(DocumentElement associatedDocumentElement)
Parameters
DocumentElement associatedDocumentElement

InlineLayoutBox(DocumentElement, DocumentStructureCollection)

Declaration
public InlineLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters
DocumentElement associatedDocumentElement

DocumentStructureCollection collection

InlineLayoutBox(DocumentElement, DocumentStructureCollection, Boolean)

Declaration
public InlineLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
Parameters
DocumentElement associatedDocumentElement

DocumentStructureCollection collection

System.Boolean isFragment

Properties

AssociatedInline

Gets the inline element associated with the layout box.

Declaration
public Inline AssociatedInline { get; }
Property Value
Inline

BaselineOffset

Gets the baseline offset of the inline layout box.

Declaration
public abstract float BaselineOffset { get; }
Property Value
System.Single

HasWidthAtTheEndOfLine

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

Declaration
public abstract bool HasWidthAtTheEndOfLine { get; }
Property Value
System.Boolean

IsContainerBox

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

Declaration
public override bool IsContainerBox { get; }
Property Value
System.Boolean

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
public abstract bool IsReadonly { get; }
Property Value
System.Boolean

IsRtl

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

Declaration
public bool IsRtl { get; }
Property Value
System.Boolean

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
public abstract bool IsSplittable { get; }
Property Value
System.Boolean

IsStartOfLineSegment

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

Declaration
public bool IsStartOfLineSegment { get; }
Property Value
System.Boolean

LineInfo

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

Declaration
public ParagraphLineInfo LineInfo { get; }
Property Value
ParagraphLineInfo

LineSegmentInfo

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

Declaration
public ParagraphLineSegmentInfo LineSegmentInfo { get; }
Property Value
ParagraphLineSegmentInfo

PositionsCountInBox

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

Declaration
public abstract int PositionsCountInBox { get; }
Property Value
System.Int32

Text

Represents the text content contained within the InlineLayoutBox.

Declaration
public abstract string Text { get; set; }
Property Value
System.String

Methods

CreateNewFragment(Single, Boolean)

Creates a new fragment with the specified width and visibility.

Declaration
public virtual LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
Parameters
System.Single availableWidth

The width of the fragment to be created.

System.Boolean isFirstBoxInLine

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
public override PositionHandler GetPositionHandler()
Returns
PositionHandler

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

Overrides
LayoutBox.GetPositionHandler()

MergeWithNext(LayoutBox)

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

Declaration
public override void MergeWithNext(LayoutBox nextSpanBox)
Parameters
LayoutBox nextSpanBox

Overrides
LayoutBox.MergeWithNext(LayoutBox)

Remove()

Removes the current inline layout box from its parent container.

Declaration
public void Remove()

Extension Methods

ExtensionMethods.GetCurrentSectionBox(LayoutBox)
CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.