ResetPara, ResetPara()

Syntax

ResetPara

ResetPara()

Remarks

The ResetPara statement removes paragraph formatting not defined in the current paragraph style from the selected text. For example, if you format a paragraph with a half-inch left indent and the style applied to the paragraph has no left indent, ResetPara would remove the indent.

The ResetPara() function returns the following values without removing paragraph formatting.

Value

Explanation

0 (zero)

If the first paragraph in the selection contains formatting that differs from the formatting defined for the applied paragraph style

–1

If the first paragraph in the selection contains no formatting that differs from the formatting defined for the applied paragraph style


Example

If the current paragraph is formatted as Normal, this example removes any paragraph formatting not defined as part of the style:


If StyleName$() = "Normal" Then ResetPara

See Also

FormatParagraph, NormalStyle, ResetChar