Class MergeRuleEditingExtensions
Phase 167: Word's Mailings > Rules, each a field as Word's dialog writes it (tools/Probe-WordMergeRules.ps1):
IF, NEXTIF and SKIPIF around a nested MERGEFIELD of the compared field, NEXT,
MERGEREC and MERGESEQ; each with the text Word shows before any data. One undo step each.
public static class MergeRuleEditingExtensions
- Inheritance
-
MergeRuleEditingExtensions
- Inherited Members
Fields
- MaxTextLength
The longest compared value or then / else text.
Methods
- InsertIfThenElse(WordDocument, DocumentPosition, string, MergeComparison, string, string, string)
Inserts If...Then...Else:
IF {MERGEFIELD field} op "value" "then" "else", showingelseTextbefore any data.
- InsertMergeRecordNumber(WordDocument, DocumentPosition)
Inserts Merge Record #:
MERGEREC, the record's number in the list.
- InsertMergeSequenceNumber(WordDocument, DocumentPosition)
Inserts Merge Sequence #:
MERGESEQ, the record's number among those merged.
- InsertNextRecord(WordDocument, DocumentPosition)
Inserts Next Record:
NEXT.
- InsertNextRecordIf(WordDocument, DocumentPosition, string, MergeComparison, string)
Inserts Next Record If:
NEXTIF {MERGEFIELD field} op "value".
- InsertSkipRecordIf(WordDocument, DocumentPosition, string, MergeComparison, string)
Inserts Skip Record If:
SKIPIF {MERGEFIELD field} op "value".