API Reference
Class
WordListTraversal
Provides utilities to traverse list structures within a document.
Inheritance
- Object
- WordListTraversal
Methods
GetListTypes(DocumentFormat.OpenXml.Packaging.WordprocessingDocument document) #Builds a map of numbering identifiers to list type (ordered or bullet).
Parameters
- document DocumentFormat.OpenXml.Packaging.WordprocessingDocument
- Document containing numbering definitions.
Returns
Dictionary mapping numbering IDs to true when ordered, false when bullet.
public static IEnumerable<WordListEvent> Traverse(WordprocessingDocument document) #Returns:
IEnumerable<WordListEvent>Traverses the body of the provided document emitting events for list structures and standalone paragraphs. This helper enables converters to reuse list handling logic without duplicating stack management code.
Parameters
- document DocumentFormat.OpenXml.Packaging.WordprocessingDocument
- Document to traverse.
Returns
Sequence of events describing lists and paragraphs.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object