Interface IParentNode

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

IElementTraversal

Properties

ChildElementCount

The childElementCount attribute must return the number of children of the context object that are elements.

int ChildElementCount { get; }

Property Value

int

Children

Returns the child elements.

[DOMName("children")]
HTMLCollection Children { get; }

Property Value

HTMLCollection

FirstElementChild

Returns the first child that is an element, and null otherwise.

Element FirstElementChild { get; }

Property Value

Element

LastElementChild

Returns the last child that is an element, and null otherwise.

Element LastElementChild { get; }

Property Value

Element

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

Element

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

NodeList

Returns the static result of running scope-match a selectors string selectors against the context object.

See Also

IElementTraversal