Provides access to a layout box's children while keeping the document structure collection in sync.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class LayoutElementCollection : LayoutElementCollectionBase, ILinkedListCollection<LayoutElement>, IEnumerable
Inheritance: objectLayoutElementCollectionBaseLayoutElementCollection
Implements:
Inherited Members
Constructors
Initializes a collection for the children of the specified layout element.
public LayoutElementCollection(DocumentStructureCollection boxesCollection, LayoutElement parentLayoutBox)
The document structure collection that stores the boxes.
parentLayoutBoxLayoutElementThe layout box whose children are exposed.
Properties
Gets the first child box.
public LayoutBox First { get; }
This collection has no parent box.
Gets whether this parent has any child boxes.
public bool HasChildren { get; }
Gets whether this collection is read-only.
public bool IsReadOnly { get; }
Gets the last child box.
public LayoutBox Last { get; }
This collection has no parent box.
Methods
Adds a box to this parent's child list in the document structure.
Does not clear the collection; clearing layout-box children is unsupported.
public void Clear()
Clearing layout-box children is not supported.
Checks whether the collection contains the specified box. This operation is not implemented.
public bool Contains(LayoutBox item)
The box to locate.
Returns: Exceptions: NotImplementedExceptionThe collection does not implement containment checks.
Copies the collection's boxes to an array. This operation is not implemented.
public void CopyTo(LayoutBox[] array, int arrayIndex)
The destination array.
arrayIndexintThe zero-based destination index at which copying begins.
Exceptions: NotImplementedExceptionCopying the collection to an array is not implemented.
Enumerates the boxes in this parent's child range in document-structure order.
public IEnumerator<LayoutBox> GetEnumerator()
IEnumerator<LayoutBox>
An enumerator over the child boxes.
Removes the last child entry from the document structure. If it is a container, this operation is safe only when the child has no descendants.