New to Telerik UI for WinForms? Start a free 30-day trial

Base collection that maps layout-element collection operations to a document structure tree.

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public abstract class LayoutElementCollectionBase : ILinkedListCollection<LayoutElement>, IEnumerable

Inheritance: objectLayoutElementCollectionBase

Derived Classes: LayoutElementCollection

Implements: IEnumerableILinkedListCollection<LayoutElement>

Constructors

Initializes a collection view over the children of the specified layout element.

C#
public LayoutElementCollectionBase(DocumentStructureCollection boxesCollection, LayoutElement parentLayoutBox)
Parameters:boxesCollectionDocumentStructureCollection

The document structure collection that stores the boxes.

parentLayoutBoxLayoutElement

The layout box whose children are exposed.

Fields

Stores the document structure collection that owns the layout boxes.

C#
protected DocumentStructureCollection boxesCollection

Stores the layout box whose children this collection exposes, or null for an empty leaf collection.

C#
protected LayoutBox parentLayoutBox

Methods

Ensures that this collection has a parent box before performing an operation that requires one.

C#
protected void CheckForLeafLayoutBoxCollection()
Exceptions: InvalidOperationException

The collection has no parent box.