ParentElementClass
Definition
- Namespace
- DOM.Abstracts
- Assembly
- DOM.dll
Parent element that can contain child elements and provides child management helpers.
Remarks
is the base class for every DOM element that can contain other elements (sections, paragraphs, tables, headers/footers, etc.). It manages an ordered collection, keeps each child's parent reference up to date, and provides insert / remove / query helpers. ParentElement Children Most user-facing container APIs (,,, and so on) are implemented in the subclass, but they all build on the primitive operations provided here. AddParagraph AddImage AddTable ElementsContainer
Examples
Constructors
Initializes an empty with no children. ParentElement
Initializes a with the specified children. ParentElement
Properties
Gets or sets the ordered collection of direct child elements.
Methods
Adds one or more child elements to the end of the children collection.
Recursively enumerates all descendants of type . T
Gets the child of type at the specified index among children of that type. T
Inserts the specified elements immediately after . sourceElement
Inserts the specified elements immediately before . sourceElement
Inserts one or more child elements at the specified index.
Produces a debug-friendly, indented representation of the object tree rooted at this element.
Removes all direct children from this element.
Removes the specified children from this element.