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.
Inherited Members
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
|
Overrides
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
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
Remove()
Removes the current inline layout box from its parent container.
Declaration
public void Remove()