ClassInlineLayoutBox
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:
public abstract class InlineLayoutBox : LayoutBox
Inheritance: objectLayoutElementLayoutBoxInlineLayoutBox
Derived Classes:
Inherited Members
Constructors
InlineLayoutBox(DocumentElement)
Declaration
public InlineLayoutBox(DocumentElement associatedDocumentElement)
Parameters
associatedDocumentElement
InlineLayoutBox(DocumentElement, DocumentStructureCollection)
Declaration
public InlineLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters
associatedDocumentElement
collection
InlineLayoutBox(DocumentElement, DocumentStructureCollection, bool)
Declaration
public InlineLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
Parameters
associatedDocumentElement
collection
isFragment
Properties
AssociatedInline
Gets the inline element associated with the layout box.
BaselineOffset
Gets the baseline offset of the inline layout box.
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
IsContainerBox
Gets a value indicating whether this instance is a container box.
Declaration
public override bool IsContainerBox { get; }
Property Value
true if this instance is a container box; otherwise, false.
Overrides
IsReadonly
Gets a value indicating whether the inline layout box is read-only.
IsRtl
Gets a value indicating whether the layout box is rendered in right-to-left (RTL) orientation.
Declaration
public bool IsRtl { get; }
Property Value
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.
IsStartOfLineSegment
Indicates whether the layout box is the start of a line segment.
LineInfo
Represents the line information for an inline layout box in the Telerik RadRichTextBox.
Declaration
public ParagraphLineInfo LineInfo { get; }
Property Value
LineSegmentInfo
Represents information about a line segment in the inline layout box.
Declaration
public ParagraphLineSegmentInfo LineSegmentInfo { get; }
Property Value
PositionsCountInBox
Gets the number of positions contained within the inline layout box.
Methods
CreateNewFragment(float, bool)
Creates a new fragment with the specified width and visibility.
Declaration
public virtual LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
Parameters
availableWidth
The width of the fragment to be created.
isFirstBoxInLine
Specifies whether the fragment should be visible.
Returns
A new instance of a fragment as an InlineLayoutBox.
GetPositionHandler()
Retrieves the position of the inline layout box.
Declaration
public override PositionHandler GetPositionHandler()
Returns
The position of the inline layout box as a Point structure.
Overrides
MergeWithNext(LayoutBox)
Merges the current InlineLayoutBox with the next LayoutBox if they are compatible.
Declaration
public override void MergeWithNext(LayoutBox nextSpanBox)
Parameters
nextSpanBox
Overrides
Remove()
Removes the current inline layout box from its parent container.
Declaration
public void Remove()