ClassUIElementLayoutBox
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
UIElementLayoutBox(DocumentElement, DocumentStructureCollection)
Declaration
public UIElementLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
Parameters
parentElement
collection
Properties
AssociatedUIElementInline
Gets the associated UI element inline for the layout box.
Declaration
public InlineUIContainer AssociatedUIElementInline { get; set; }
Property Value
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
public override float BaselineOffset { get; }
Property Value
Overrides
CanCreateLayoutBoxesFromContent
Declaration
protected override bool CanCreateLayoutBoxesFromContent { get; }
Property Value
Overrides
HasWidthAtTheEndOfLine
Indicates whether the UI element has a defined width at the end of the line.
Declaration
public override bool HasWidthAtTheEndOfLine { get; }
Property Value
Overrides
IsReadonly
Gets a value indicating whether the UI element layout box is in a read-only state.
Declaration
public override bool IsReadonly { get; }
Property Value
Overrides
IsSplittable
Gets a value indicating whether the UI element layout box can be split.
Declaration
public override bool IsSplittable { get; }
Property Value
Overrides
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
public override int PositionsCountInBox { get; }
Property Value
Overrides
Methods
CreateLayoutElement()
Creates a new layout element based on the current configuration.
Declaration
public override LayoutElement CreateLayoutElement()
Returns
A new instance of a layout element that represents the configured UI component.
Overrides
GetUIElement()
Retrieves the UI element associated with the layout box.
Declaration
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
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
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
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
public override string ToString()
Returns
A string representation of the current UIElementLayoutBox instance.
Overrides