Skip to main content

DocumentIterator Members

Iterates over document elements.

Constructors

Name Description
DocumentIterator(DocumentRange, Boolean) Initializes a new instance of the DocumentIterator class for the specified document range.
DocumentIterator(SubDocument, Boolean) Initializes a new instance of the DocumentIterator class for the specified document.
DocumentIterator(SubDocument, Int32, Int32, Boolean) Initializes a new instance of the DocumentIterator class for the specified part of the document.

Properties

Name Description
Current Gets the document element currently visited by the iterator.
CurrentParagraphIndex Gets the index of a document paragraph currently visited by the iterator.
CurrentParagraphProperties Gets access to the properties of a document paragraph currently visited by the iterator.
CurrentSectionIndex Gets the index of a document section currently visited by the iterator.
CurrentSectionProperties Gets access to the properties of a document section currently visited by the iterator.

Methods

Name Description
Dispose() Disposes of the DocumentIterator object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MoveNext() Navigates to the next document element in the document model.
MoveNext(DocumentElementType) Navigates to the next document element of the specific type.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reset() Rewinds the iterator to its initial position.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also