FlowOrderedLayoutBox
Base for layout boxes linked in document flow, with separate navigation to adjacent fragments of the same document element.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class FlowOrderedLayoutBox : LayoutBox, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxFlowOrderedLayoutBox...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a flow-ordered box for a document element, optionally marking it as a fragment.
public FlowOrderedLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
The document element represented by the box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
isFragmentbooltrue if this box represents a fragment of the document element.
Creates a non-fragment flow-ordered box for a document element.
public FlowOrderedLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
The document element represented by the box.
collectionDocumentStructureCollectionThe document structure collection that owns the box.
Creates a non-fragment flow-ordered box without associating it with a document structure collection.
public FlowOrderedLayoutBox(DocumentElement associatedDocumentElement)
The document element represented by the box.
Properties
Gets whether this is the final flow box associated with its document element.
public override bool IsLastBox { get; }
Overrides:
Gets the following box when it represents the same document element; otherwise, returns null.
public FlowOrderedLayoutBox NextAssociatedBox { get; }
Gets the immediately following box in the flow-ordered sequence.
public FlowOrderedLayoutBox NextBox { get; }
Gets the preceding box when it represents the same document element; otherwise, returns null.
public FlowOrderedLayoutBox PreviousAssociatedBox { get; }
Gets the immediately preceding box in the flow-ordered sequence.
public FlowOrderedLayoutBox PreviousBox { get; }
Methods
Inserts this box immediately after an existing box and reconnects the following box, if any.
public void LinkAfter(FlowOrderedLayoutBox existingBox)
The box after which this box is inserted.
Links two boxes as adjacent entries in the flow-ordered sequence. Only the first box's next link and the second box's previous link are changed.
public static void Pair(FlowOrderedLayoutBox firstBox, FlowOrderedLayoutBox secondBox)
The box that precedes secondBox, or null.
The box that follows firstBox, or null.
Removes this box from the flow-ordered links and reconnects its previous and next boxes.
public void Unlink()