Interface IParentNode
Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML.dll (25.2.0)
Defines the Aspose.Html.Dom.IParentNode interface that is implemented by any possible parents.
[ComVisible(true)]
[DOMNoInterfaceObject]
public interface IParentNode : IElementTraversal
Implements
Properties
ChildElementCount
The childElementCount attribute must return the number of children of the context object that are elements.
int ChildElementCount { get; }
Property Value
Children
Returns the child elements.
[DOMName("children")]
HTMLCollection Children { get; }
Property Value
FirstElementChild
Returns the first child that is an element, and null otherwise.
Element FirstElementChild { get; }
Property Value
LastElementChild
Returns the last child that is an element, and null otherwise.
Element LastElementChild { get; }
Property Value
Methods
QuerySelector(string)
Returns the first element that is a descendant of node that matches selectors.
[DOMNullable]
[DOMName("querySelector")]
Element QuerySelector(string selectors)
Parameters
selectors
string
The selectors.
Returns
Returns the first matched element.
QuerySelectorAll(string)
Returns all element descendants of node that match selectors.
[DOMName("querySelectorAll")]
NodeList QuerySelectorAll(string selectors)
Parameters
selectors
string
The selectors.
Returns
Returns the static result of running scope-match a selectors string selectors against the context object.