Syntax
ResetChar
ResetChar()
Remarks
The ResetChar statement removes manual character formatting (formatting not defined in the selected paragraph styles) from the selected text. For example, if you manually format a word or phrase in a paragraph as bold text and the paragraph style is plain text, ResetChar would remove the bold format.
The ResetChar() function returns the following values without resetting character formats.
Value | Explanation | |
0 (zero) | If the selected text contains any manual character formatting | |
1 | If the selected text contains no manual character formatting |
Example
If the current paragraph is formatted as Normal, this example selects the entire paragraph (using the predefined bookmark " \ Para") and removes any character formatting not defined as part of the style:
If StyleName$() = "Normal" Then EditGoTo "\Para" ResetChar End If
See Also
FormatFont, ResetPara