New to Telerik UI for WPFStart a free 30-day trial

Represents a box that lays out a UI element in the Telerik Documents layout system.

Definition

Namespace:Telerik.Windows.Documents.Layout

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class UIElementLayoutBox : InlineLayoutBox

Inheritance: objectLayoutElementLayoutBoxInlineLayoutBoxUIElementLayoutBox

Inherited Members InlineLayoutBox.Remove()InlineLayoutBox.MergeWithNext(LayoutBox)InlineLayoutBox.CreateNewFragment(float, bool)InlineLayoutBox.GetPositionHandler()InlineLayoutBox.LineInfoInlineLayoutBox.LineSegmentInfoInlineLayoutBox.IsRtlInlineLayoutBox.IsContainerBoxInlineLayoutBox.AssociatedInlineInlineLayoutBox.IsStartOfLineSegmentLayoutBox.currentYLayoutBox.AssociatedLayoutBoxPropertyLayoutBox.NodeLayoutBox.GetAssociatedLayoutBox(UIElement)LayoutBox.SetAssociatedLayoutBox(UIElement, LayoutBox)LayoutBox.OnElementStructureChanging()LayoutBox.OnElementStructureChanged()LayoutBox.OnAssociateDocumentElementChanged()LayoutBox.CreateChildrenCollection(DocumentStructureCollection)LayoutBox.InvalidateMeasureUpToTheRoot()LayoutBox.InvalidateMeasureUpToTheRootStable()LayoutBox.InvalidateArrangeUpToTheRoot()LayoutBox.InvalidateLayoutAfterEdit()LayoutBox.ValidateChild(LayoutBox)LayoutBox.GetRootDocument()LayoutBox.CanGrowVerticallyOverride(float)LayoutBox.CanGrowVertically(float)LayoutBox.GetBoxDesiredGrow()LayoutBox.CreateNewFragment(LayoutBox)LayoutBox.InvalidateMeasure()LayoutBox.IsRemovedLayoutBox.IsFragmentLayoutBox.AssociatedDocumentElementLayoutBox.ChildLayoutBoxesLayoutBox.HasVisualRepresentationLayoutBox.IsFormattingSymbolLayoutBox.BoundsChildBoxesLayoutBox.IsFirstBoxLayoutBox.IsLastBoxLayoutBox.IsFirstChildLayoutBox.IsLastChildLayoutBox.IsValidPositionLayoutBox.ParentLayoutBox.ChildIndexLayoutBox.BoundingRectangleLayoutBox.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.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

C#
public UIElementLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
Parameters:parentElementDocumentElementcollectionDocumentStructureCollection

Properties

Gets the associated UI element inline for the layout box.

C#
public InlineUIContainer AssociatedUIElementInline { get; set; }

Gets the baseline offset of the UI element layout box, which represents the distance between the baseline of the text and the top edge of the layout box.

C#
public override float BaselineOffset { get; }

Overrides: InlineLayoutBox.BaselineOffset

C#
protected override bool CanCreateLayoutBoxesFromContent { get; }

Overrides: LayoutBox.CanCreateLayoutBoxesFromContent

Indicates whether the UI element has a defined width at the end of the line.

C#
public override bool HasWidthAtTheEndOfLine { get; }

Overrides: InlineLayoutBox.HasWidthAtTheEndOfLine

Gets a value indicating whether the UI element layout box is in a read-only state.

C#
public override bool IsReadonly { get; }

Overrides: InlineLayoutBox.IsReadonly

Gets a value indicating whether the UI element layout box can be split.

C#
public override bool IsSplittable { get; }

Overrides: InlineLayoutBox.IsSplittable

Gets the count of positions within the layout box. This value indicates how many layout positions are available for elements contained in the box.

C#
public override int PositionsCountInBox { get; }

Overrides: InlineLayoutBox.PositionsCountInBox

Represents the text content of a UI element layout box in Telerik's document framework.

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

Overrides: InlineLayoutBox.Text

Methods

Creates a new layout element based on the current configuration.

C#
public override LayoutElement CreateLayoutElement()
Returns:

LayoutElement

A new instance of a layout element that represents the configured UI component.

Overrides: LayoutBox.CreateLayoutElement()

Retrieves the UI element associated with the layout box.

C#
public UIElement GetUIElement()
Returns:

UIElement

The UI element that is represented by the current instance of the layout box.

Measures the space required by the LayoutElement Used by the layout system.

C#
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters:availableSizeSizeF

The size that is available to the LayoutElement. The available size can be infinity (to take the full size of the element)

Returns:

SizeF

The minimum size required by the element to be completely visible. Cannot be infinity.

Overrides: LayoutElement.MeasureOverride(SizeF)

Remarks:

In this method call to the Measure method of each child must be made.

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string

A string representation of the current UIElementLayoutBox instance.

Overrides: LayoutBox.ToString()