New to Telerik UI for WinForms? Start a free 30-day trial

Base class for non-container layout boxes that represent inline content and its positions within a paragraph.

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public abstract class InlineLayoutBox : LayoutBox, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor

Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxInlineLayoutBox...

Derived Classes: AnnotationMarkerLayoutBoxDrawingLayoutBoxSpanLayoutBoxUIElementLayoutBox

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

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.ParentChangedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes an inline layout box for a document element and specifies whether it is a fragment.

C#
public InlineLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
Parameters:associatedDocumentElementDocumentElement

The inline document element represented by the box.

collectionDocumentStructureCollection

The document structure collection that owns the box.

isFragmentbool

true when the box is a fragment of the document element.

Initializes a non-fragment inline layout box for a document element.

C#
public InlineLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters:associatedDocumentElementDocumentElement

The inline document element represented by the box.

collectionDocumentStructureCollection

The document structure collection that owns the box.

Initializes a non-fragment inline layout box and creates a document structure collection when none is supplied.

C#
public InlineLayoutBox(DocumentElement associatedDocumentElement)
Parameters:associatedDocumentElementDocumentElement

The inline document element represented by the box.

Properties

Gets the document inline represented by this box.

C#
public Inline AssociatedInline { get; }

Gets the distance from the top of the box to its text baseline.

C#
public abstract float BaselineOffset { get; }

Gets whether this box's width must be included when calculating the visible width from the end of a line. Trailing boxes without this flag can be excluded from that line-width calculation.

C#
public abstract bool HasWidthAtTheEndOfLine { get; }

Gets whether this inline box is a leaf in the layout tree.

C#
public override bool IsContainerBox { get; }

Overrides: LayoutBox.IsContainerBox

Gets whether the represented content is read-only, as formatting symbols are.

C#
public abstract bool IsReadonly { get; }

Gets whether the associated span flows right-to-left, excluding decimal-number boxes and end-of-line symbols.

C#
public bool IsRtl { get; }

Gets whether the box can be divided into separate layout fragments.

C#
public abstract bool IsSplittable { get; }

Gets whether this box is the first inline box in its line segment.

C#
public bool IsStartOfLineSegment { get; }

Gets the paragraph line information assigned to this box during layout.

C#
public ParagraphLineInfo LineInfo { get; }

Gets the line-segment information assigned to this box during layout.

C#
public ParagraphLineSegmentInfo LineSegmentInfo { get; }

Gets the number of logical text positions represented by this box.

C#
public abstract int PositionsCountInBox { get; }

Gets or sets the text or formatting-symbol representation carried by this inline box.

C#
public abstract string Text { get; set; }

Methods

Creates a fragment for the specified available width. The base implementation does not provide fragment creation; concrete inline boxes must override this method.

C#
public virtual LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
Parameters:availableWidthfloat

The available width passed to the concrete box's fragment-creation logic.

isFirstBoxInLinebool

true when this box is the first in its line.

Returns:

LayoutBox

A new layout fragment when the concrete box can be split.

Exceptions: InvalidOperationException

The base implementation does not support fragment creation.

Creates a position handler for navigating the positions represented by this inline box.

C#
public override PositionHandler GetPositionHandler()
Returns:

PositionHandler

An inline-box position handler.

Overrides: LayoutBox.GetPositionHandler()

The base inline box does not support merging.

C#
public override void MergeWithNext(LayoutBox nextSpanBox)
Parameters:nextSpanBoxLayoutBox

The following box; the base implementation does not use it.

Exceptions: InvalidOperationException

The base implementation does not support merging inline boxes.

Overrides: LayoutBox.MergeWithNext(LayoutBox)

Removes this box from its paragraph and invalidates layout; fragments also invalidate long-word fragmentation.

C#
public void Remove()