Class CaptionEditingExtensions
References > Insert Caption as an undoable edit, as Word writes it (WQ-0112, tools/Probe-WordCaptions.ps1):
a paragraph in the Caption style holding the label, a SEQ field and the title, above or below the table or paragraph
at the position; every caption of the label is numbered again.
public static class CaptionEditingExtensions
- Inheritance
-
CaptionEditingExtensions
- Inherited Members
Fields
- MaxLabelLength
The longest caption label.
- MaxTitleLength
The longest caption title.
Methods
- CaptionLabels(WordDocument)
The labels Insert Caption offers: Word's (Equation, Figure, Table) and every other one the document's SEQ fields use.
- InsertCaption(WordDocument, DocumentPosition, CaptionOptions?)
Inserts a caption, as one undoable edit: a new paragraph in Word's Caption style above or below the table the position is in (else its paragraph), holding
Label, aSEQ Label * ARABICfield and the title. One above keeps with the next paragraph, as Word's does. Every caption of the label is then numbered again, so one inserted before others moves their numbers on (WQ-0112).
- IsValidLabel(string?)
Gets whether a label can be used: 1 to 40 characters, no quote, backslash or control character.
- SequenceName(string)
The SEQ identifier for a label: its spaces as underscores (
My LabelisSEQ My_Label).