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:
public class UIElementLayoutBox : InlineLayoutBox
Inheritance: objectLayoutElementLayoutBoxInlineLayoutBoxUIElementLayoutBox
Inherited Members
Constructors
public UIElementLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
Properties
Gets the associated UI element inline for the layout box.
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.
public override float BaselineOffset { get; }
Overrides:
protected override bool CanCreateLayoutBoxesFromContent { get; }
Overrides:
Indicates whether the UI element has a defined width at the end of the line.
public override bool HasWidthAtTheEndOfLine { get; }
Overrides:
Gets a value indicating whether the UI element layout box is in a read-only state.
public override bool IsReadonly { get; }
Overrides:
Gets a value indicating whether the UI element layout box can be split.
public override bool IsSplittable { get; }
Overrides:
Gets the count of positions within the layout box. This value indicates how many layout positions are available for elements contained in the box.
public override int PositionsCountInBox { get; }
Overrides:
Methods
Creates a new layout element based on the current configuration.
public override LayoutElement CreateLayoutElement()
A new instance of a layout element that represents the configured UI component.
Overrides:
GetUIElement()
UIElement
Retrieves the UI element associated with the layout box.
public UIElement GetUIElement()
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.
protected override SizeF MeasureOverride(SizeF availableSize)
The size that is available to the LayoutElement. The available size can be infinity (to take the full size of the element)
Returns:The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides:
In this method call to the Measure method of each child must be made.
Returns a string that represents the current object.
public override string ToString()
A string representation of the current UIElementLayoutBox instance.
Overrides: