Contents - Index - Previous - Next


ToggleNumbering method




Declaration
function ToggleNumbering: Boolean;

Description

Turns the selection into a numbered (ordered) list or removes selected list items from a numbered list.

The method acts on the selection, or if nothing is selected, on the current paragraph. The method surrounds the affected paragraph(s) with <OL> and </OL> tags, and places <LI> and </LI> around individual paragraphs. If the selection is already part of an ordered list, the tags are removed and surrounding text is fixed up appropriately.

Returns True on success. Returns False if the selection includes an element, such as a table, that cannot be put into a list.