Represents a collection of layout elements used in Telerik's document layout system.
Definition
Namespace:Telerik.Windows.Documents.Layout
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class LayoutElementCollection : LayoutElementCollectionBase, ILinkedListCollection<LayoutElement>, ICollection<LayoutElement>, IEnumerable<LayoutElement>, ICollection<LayoutBox>, IEnumerable<LayoutBox>, IEnumerable
Inheritance: objectLayoutElementCollectionBaseLayoutElementCollection
Implements:
Inherited Members
Constructors
public LayoutElementCollection(DocumentStructureCollection boxesCollection, LayoutElement parentLayoutBox)
Properties
Gets the number of elements in the collection.
public int Count { get; }
The number of elements in the LayoutElementCollection.
Implements:
Retrieves the first element from the collection of layout elements.
public LayoutBox First { get; }
Indicates whether the layout element has any child elements.
public bool HasChildren { get; }
Gets a value indicating whether the collection is read-only.
public bool IsReadOnly { get; }
Returns true if the collection is read-only; otherwise, false.
Implements:
Methods
Adds a LayoutBox to the LayoutElementCollection.
public void Add(LayoutBox item)
The LayoutBox to add to the collection.
Implements:
Adds a leaf child box to the specified parent box in the layout element collection.
Removes all elements from the LayoutElementCollection.
public void Clear()
Implements:
This method clears the collection, effectively resetting it to an empty state.
Copies the elements of the current LayoutElementCollection to the specified array, starting at the specified index in the array.
Retrieves an enumerator that allows iteration through the collection of layout elements.
public IEnumerator<LayoutBox> GetEnumerator()
An enumerator for the LayoutBox that can be used to iterate through the collection.
Implements:
Removes the last element from the collection of layout elements.
public void RemoveLast()