NodeList

Overview

NodeList is a class in Aspose.Words FOSS for .NET. Inherits from: IEnumerable<Node>.

Represents a collection of nodes matching an XPath query executed using the SelectNodes method.

This class provides 2 methods for working with NodeList objects in .NET programs. Available methods include: GetEnumerator, ToArray. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Count.

Properties

NameTypeAccessDescription
CountintReadGets the number of nodes in the list.

Methods

SignatureDescription
ToArray()Copies all nodes from the collection to a new array of nodes.
GetEnumerator()Provides a simple “foreach” style iteration over the collection of nodes.

See Also