DocumentVisitor

DocumentVisitor

Overview

DocumentVisitor is a class in Aspose.Words FOSS for .NET.

Base class for custom document visitors.

This class provides 50 methods for working with DocumentVisitor objects in .NET programs. Available methods include: VisitAbsolutePositionTab, VisitBodyEnd, VisitBodyStart, VisitBookmarkEnd, VisitBookmarkStart, VisitBuildingBlockEnd, VisitBuildingBlockStart, VisitCellEnd, VisitCellStart, VisitCommentEnd, VisitCommentRangeEnd, VisitCommentRangeStart, and 38 additional methods. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.

Methods

SignatureDescription
VisitDocumentStart(doc: Document)Called when enumeration of the document has started.
VisitDocumentEnd(doc: Document)Called when enumeration of the document has finished.
VisitSectionStart(section: Section)Called when enumeration of a section has started.
VisitSectionEnd(section: Section)Called when enumeration of a section has ended.
VisitBodyStart(body: Body)Called when enumeration of the main text story in a section has started.
VisitBodyEnd(body: Body)Called when enumeration of the main text story in a section has ended.
VisitHeaderFooterStart(headerFooter: HeaderFooter)Called when enumeration of a header or footer in a section has started.
VisitHeaderFooterEnd(headerFooter: HeaderFooter)Called when enumeration of a header or footer in a section has ended.
VisitParagraphStart(paragraph: Paragraph)Called when enumeration of a paragraph has started.
VisitParagraphEnd(paragraph: Paragraph)Called when enumeration of a paragraph has ended.
VisitTableStart(table: Table)Called when enumeration of a table has started.
VisitTableEnd(table: Table)Called when enumeration of a table has ended.
VisitRowStart(row: Row)Called when enumeration of a table row has started.
VisitRowEnd(row: Row)Called when enumeration of a table row has ended.
VisitCellStart(cell: Cell)Called when enumeration of a table cell has started.
VisitCellEnd(cell: Cell)Called when enumeration of a table cell has ended.
VisitRun(run: Run)Called when a run of text in the is encountered.
VisitFieldStart(fieldStart: FieldStart)Called when a field starts in the document.
VisitFieldSeparator(fieldSeparator: FieldSeparator)Called when a field separator is encountered in the document.
VisitFieldEnd(fieldEnd: FieldEnd)Called when a field ends in the document.
VisitFormField(formField: FormField)Called when a form field is encountered in the document.
VisitBookmarkStart(bookmarkStart: BookmarkStart)Called when a start of a bookmark is encountered in the document.
VisitBookmarkEnd(bookmarkEnd: BookmarkEnd)Called when an end of a bookmark is encountered in the document.
VisitFootnoteStart(footnote: Footnote)Called when enumeration of a footnote or endnote text has started.
VisitFootnoteEnd(footnote: Footnote)Called when enumeration of a footnote or endnote text has ended.
VisitCommentStart(comment: Comment)Called when enumeration of a comment text has started.
VisitCommentEnd(comment: Comment)Called when enumeration of a comment text has ended.
VisitEditableRangeStart(editableRangeStart: EditableRangeStart)Called when a start of an editable range is encountered in the document.
VisitEditableRangeEnd(editableRangeEnd: EditableRangeEnd)Called when an end of an editable range is encountered in the document.
VisitShapeStart(shape: Shape)Called when enumeration of a shape has started.
VisitShapeEnd(shape: Shape)Called when enumeration of a shape has ended.
VisitGroupShapeStart(groupShape: GroupShape)Called when enumeration of a group shape has started.
VisitGroupShapeEnd(groupShape: GroupShape)Called when enumeration of a group shape has ended.
VisitOfficeMathStart(officeMath: OfficeMath)Called when enumeration of a Office Math object has started.
VisitOfficeMathEnd(officeMath: OfficeMath)Called when enumeration of a Office Math object has ended.
VisitSpecialChar(specialChar: SpecialChar)Called when a SpecialChar node is encountered in the document.
VisitAbsolutePositionTab(tab: AbsolutePositionTab)Called when a AbsolutePositionTab node is encountered in the document.
VisitSmartTagStart(smartTag: SmartTag)Called when enumeration of a smart tag has started.
VisitSmartTagEnd(smartTag: SmartTag)Called when enumeration of a smart tag has ended.
VisitStructuredDocumentTagStart(sdt: StructuredDocumentTag)Called when enumeration of a structured document tag has started.
VisitStructuredDocumentTagEnd(sdt: StructuredDocumentTag)Called when enumeration of a structured document tag has ended.
VisitGlossaryDocumentStart(glossary: GlossaryDocument)Called when enumeration of a glossary document has started.
VisitGlossaryDocumentEnd(glossary: GlossaryDocument)Called when enumeration of a glossary document has ended.
VisitBuildingBlockStart(block: BuildingBlock)Called when enumeration of a building block has started.
VisitBuildingBlockEnd(block: BuildingBlock)Called when enumeration of a building block has ended.
VisitCommentRangeStart(commentRangeStart: CommentRangeStart)Called when the start of a commented range of text is encountered.
VisitCommentRangeEnd(commentRangeEnd: CommentRangeEnd)Called when the end of a commented range of text is encountered.
VisitSubDocument(subDocument: SubDocument)Called when a sub-document is encountered.
VisitStructuredDocumentTagRangeStart(sdtRangeStart: StructuredDocumentTagRangeStart)Called when a StructuredDocumentTagRangeStart is encountered.
VisitStructuredDocumentTagRangeEnd(sdtRangeEnd: StructuredDocumentTagRangeEnd)Called when a StructuredDocumentTagRangeEnd is encountered.

See Also