Class DomVisitor
Double-dispatch visitor over the document tree. Every method has a default implementation that visits the node's children, so a subclass overrides only the node types it cares about and still traverses the whole tree. Dispatch is virtual — no reflection — and new node types are added as new virtual methods, which keeps the type evolution additive.
public abstract class DomVisitor
- Inheritance
-
DomVisitor
- Inherited Members
Constructors
Methods
- VisitBookmarkEnd(BookmarkEnd)
Visits a bookmark end marker.
- VisitBookmarkStart(BookmarkStart)
Visits a bookmark start marker.
- VisitBreakChar(BreakChar)
Visits an explicit break character.
- VisitChartRef(ChartRef)
Visits a chart drawing.
- VisitChildren(DomNode)
Visits every child of
nodein document order. The default implementation of every node method calls this, so overriding a node method and not calling it prunes the subtree.
- VisitFieldChar(FieldChar)
Visits a field state character (begin, separate or end).
- VisitFieldCode(FieldCode)
Visits a fragment of field instruction text.
- VisitHeaderFooter(HeaderFooter)
Visits a header or footer.
- VisitHyperlinkEnd(HyperlinkEnd)
Visits the end marker of a hyperlink.
- VisitHyperlinkStart(HyperlinkStart)
Visits the start marker of a hyperlink.
- VisitImageRef(ImageRef)
Visits an image reference.
- VisitNote(Note)
Visits a footnote or endnote.
- VisitNoteRef(NoteRef)
Visits a footnote or endnote reference mark.
- VisitParagraph(Paragraph)
Visits a paragraph.
- VisitSdtBlock(SdtBlock)
Visits a block-level structured document tag.
- VisitSdtInline(SdtInline)
Visits an inline-level structured document tag.
- VisitSection(Section)
Visits a section.
- VisitShapeRef(ShapeRef)
Visits a shape or shape-group reference.
- VisitShapeTextBody(ShapeTextBody)
Visits the text body of a shape.
- VisitTabChar(TabChar)
Visits an explicit tab character.
- VisitTable(Table)
Visits a table.
- VisitTableCell(TableCell)
Visits a table cell.
- VisitTableRow(TableRow)
Visits a table row.
- VisitTextRun(TextRun)
Visits a text run.
- VisitUnknownBlock(UnknownBlock)
Visits a preserved unknown block-level element.
- VisitUnknownInline(UnknownInline)
Visits a preserved unknown inline-level element.
- VisitWordDocument(WordDocument)
Visits a document root.