UIElementLayoutBox
Represents an InlineUIContainer in text flow, measuring from the container's dimensions while its UI element is hosted separately.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class UIElementLayoutBox : InlineLayoutBox, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxInlineLayoutBoxUIElementLayoutBox...
Implements:
Inherited Members
Constructors
Creates a layout box for an inline UI container.
public UIElementLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
The inline UI container represented by this box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
Properties
Gets or sets the inline model element whose UI element is hosted by this box.
public InlineUIContainer AssociatedUIElementInline { get; set; }
A non-null associated document element is not an InlineUIContainer.
Gets the inline container's full height as its baseline offset.
public override float BaselineOffset { get; }
Overrides:
Gets whether child layout boxes can be created from the associated content. The embedded UI element is hosted separately, so this returns false.
protected override bool CanCreateLayoutBoxesFromContent { get; }
Overrides:
Gets whether this inline item contributes width to the line; a UI container contributes its measured width.
public override bool HasWidthAtTheEndOfLine { get; }
Overrides:
Gets whether the box is read-only as inline text; the embedded UI element is not text content.
public override bool IsReadonly { get; }
Overrides:
Gets whether the embedded UI element can be split across line fragments. A UI container remains one inline item.
public override bool IsSplittable { get; }
Overrides:
Gets the single document position occupied by the embedded UI element.
public override int PositionsCountInBox { get; }
Overrides:
Gets an empty string because the embedded UI element is not text. Setting this property is unsupported.
public override string Text { get; set; }
The setter is called.
Overrides:
Methods
An embedded UI element cannot be duplicated as a layout element.
public override LayoutElement CreateLayoutElement()
This method does not return.
Exceptions: NotSupportedExceptionA layout element is requested from this box.
Overrides:
Returns the embedded UI element after associating it with this box and marking its first layout box as active.
public UIElement GetUIElement()
The UI element stored in the associated inline container.
Measures from the width and height stored on the associated inline container; the available size is not used.
Returns the inline container's string representation in quotation marks for diagnostics.