Syntax
EditReplacePara [.LeftIndent = number or text] [, .RightIndent = number or text] [, .Before = number or text] [, .After = number or text] [, .LineSpacingRule = number] [, .LineSpacing = number or text] [, .Alignment = number] [, .WidowControl = number] [, .KeepWithNext = number] [, .KeepTogether = number] [, .PageBreak = number] [, .NoLineNum = number] [, .DontHyphen = number] [, .Tab = number] [, .FirstIndent = number or text]
Remarks
When followed by an EditReplace instruction in which .Format is set to 1, specifies paragraph formatting for the replacement text. You can set .WidowControl, .KeepWithNext, .KeepTogether, .PageBreak, .NoLineNum, and .DontHyphen to one of the three following values.
Use this value | To do this | |
–1 | Preserve the state of a given format in the found text | |
0 (zero) | Remove the given format from the found text | |
1 | Apply the given format to the found text |
For more information on the arguments, see FormatParagraph.
Example
This example applies a 2-inch left indent to all paragraphs in the active document that currently have a 1-inch left indent:
StartOfDocument EditFindClearFormatting EditReplaceClearFormatting EditFindPara .LeftIndent = "1 in" EditReplacePara .LeftIndent = "2 in" EditReplace .Find = "", .Replace = "", .ReplaceAll, \ .Format = 1, .Wrap = 0
See Also
EditFindPara, EditReplace, EditReplaceBorder, EditReplaceClearFormatting, EditReplaceFont, EditReplaceFrame, EditReplaceLang, EditReplaceStyle, EditReplaceTabs, FormatParagraph