Method GetText
GetText(DomNode, RevisionView)
Extracts the plain text of a subtree. Paragraph boundaries and line breaks become
'\n', page and column breaks become '\f', tabs are '\t' (already in run text).
Field instruction text is excluded; cached field results are included. Tracked
changes are collapsed per view (deleted text excluded in
Final, inserted text excluded in
Original).
public static string GetText(this DomNode node, RevisionView view = RevisionView.Final)
Parameters
nodeDomNodeThe subtree root.
viewRevisionViewThe revision view; defaults to Final.
Returns
- string
The extracted text.