Class
UIElementLayoutBox

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:

cs-api-definition
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

UIElementLayoutBox(DocumentElement, DocumentStructureCollection)

Declaration

cs-api-definition
public UIElementLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)

Parameters

parentElement

DocumentElement

collection

DocumentStructureCollection

Properties

AssociatedUIElementInline

Gets the associated UI element inline for the layout box.

Declaration

cs-api-definition
public InlineUIContainer AssociatedUIElementInline { get; set; }

Property Value

InlineUIContainer

BaselineOffset

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.

Declaration

cs-api-definition
public override float BaselineOffset { get; }

Property Value

float

Overrides InlineLayoutBox.BaselineOffset

CanCreateLayoutBoxesFromContent

Declaration

cs-api-definition
protected override bool CanCreateLayoutBoxesFromContent { get; }

Property Value

bool

Overrides LayoutBox.CanCreateLayoutBoxesFromContent

HasWidthAtTheEndOfLine

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

Declaration

cs-api-definition
public override bool HasWidthAtTheEndOfLine { get; }

Property Value

bool

Overrides InlineLayoutBox.HasWidthAtTheEndOfLine

IsReadonly

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

Declaration

cs-api-definition
public override bool IsReadonly { get; }

Property Value

bool

Overrides InlineLayoutBox.IsReadonly

IsSplittable

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

Declaration

cs-api-definition
public override bool IsSplittable { get; }

Property Value

bool

Overrides InlineLayoutBox.IsSplittable

PositionsCountInBox

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

Declaration

cs-api-definition
public override int PositionsCountInBox { get; }

Property Value

int

Overrides InlineLayoutBox.PositionsCountInBox

Text

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

Declaration

cs-api-definition
public override string Text { get; set; }

Property Value

string

Overrides InlineLayoutBox.Text

Methods

CreateLayoutElement()

Creates a new layout element based on the current configuration.

Declaration

cs-api-definition
public override LayoutElement CreateLayoutElement()

Returns

LayoutElement

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

Overrides LayoutBox.CreateLayoutElement()

GetUIElement()

Retrieves the UI element associated with the layout box.

Declaration

cs-api-definition
public UIElement GetUIElement()

Returns

UIElement

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

MeasureOverride(SizeF)

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

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

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.

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string representation of the current UIElementLayoutBox instance.

Overrides LayoutBox.ToString()