DrawingLayoutBox
Represents a non-text drawing as one atomic inline position that cannot be edited as text or split across lines.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class DrawingLayoutBox : InlineLayoutBox, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxInlineLayoutBoxDrawingLayoutBox...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a drawing box associated with a drawing document element.
public DrawingLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
The drawing element represented by the box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
Properties
Gets whether child layout boxes can be created from this drawing's content. A drawing is represented directly by this box.
protected override bool CanCreateLayoutBoxesFromContent { get; }
Overrides:
Gets whether the drawing contributes width at the end of a line.
public override bool HasWidthAtTheEndOfLine { get; }
Overrides:
Gets whether the drawing box is read-only as inline text.
public override bool IsReadonly { get; }
Overrides:
Gets whether the drawing can be split across lines. Drawing boxes are atomic and cannot be split.
public override bool IsSplittable { get; }
Overrides:
Gets the number of text positions occupied by the atomic drawing.
public override int PositionsCountInBox { get; }
Overrides:
Gets an empty string because a drawing box represents an object rather than text. Setting this property is unsupported.
public override string Text { get; set; }
The setter is called.
Overrides:
Methods
A drawing box cannot be duplicated as a layout element.
public override LayoutElement CreateLayoutElement()
This method does not return.
Exceptions: NotSupportedExceptionA layout element is requested from a drawing box.
Overrides:
A drawing box cannot be split into a new fragment.
public override LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
The width available for the attempted fragment.
isFirstBoxInLinebooltrue when this box is first in its line.
Returns:This method does not return.
Exceptions: InvalidOperationExceptionA drawing box cannot be split.
Overrides: