Table of Contents

Method GetText

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

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

node DomNode

The subtree root.

view RevisionView

The revision view; defaults to Final.

Returns

string

The extracted text.