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
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of nodes in the list. |
Methods
| Signature | Description |
|---|---|
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. |