Table of Contents

Class CrossReferenceEditingExtensions

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

Word's Insert > Cross-reference as an undoable edit (WQ-0111, tools/Probe-WordCrossReference.ps1): the headings, bookmarks and notes it offers, and a REF, PAGEREF or NOTEREF field to one, with Word's _Ref bookmark round a heading's text or a note's mark.

public static class CrossReferenceEditingExtensions
Inheritance
CrossReferenceEditingExtensions
Inherited Members

Fields

MaxListed

The most headings, bookmarks or notes a list returns.

Methods

CrossReferenceBookmarks(WordDocument)

The bookmarks Word's dialog lists: the body's, not hidden (a name starting with _), in document order.

CrossReferenceHeadings(WordDocument)

The headings Word's Cross-reference dialog lists: body paragraphs with text whose outline level (their own, or their style's) is 1 to 9, in document order.

CrossReferenceNotes(WordDocument, NoteKind)

The notes of a kind Word's dialog lists: their numbered reference marks in the body, in document order.

InsertCrossReference(WordDocument, DocumentPosition, CrossReferenceTarget, CrossReferenceKind, bool, FieldUpdateOptions?)

Inserts a cross-reference at a position, as one undoable edit: a REF, PAGEREF or NOTEREF field with its result, \h when it links, after putting Word's _Ref bookmark round a heading's text or a note's mark (one already there is reused).