Contents - Index - Previous - Next


ToggleSubScript method




Declaration
function ToggleSubScript: Boolean;

Description

Toggles the subscript state of the selected text.

If nothing is selected, the method does not treat the current word as the selection.

The method places <SUB> and </SUB> tags around the selection. If the selection is already formatted subscript, the <SUB> and </SUB> tags are removed. If the selection is within a larger string of subscript text, the method inserts </SUB> and <SUB> tags around the selection, effectively turning subscript off for the selection.

Returns True on success. Returns False if the selection is an element (such as a control or table) that does not support subscript formatting.