Contents
- Index
- Previous
- Next
ToggleStrikeOut method
Declaration
function ToggleStrikeOut(UseCurrentWord: Boolean = True): Boolean;
Description
Toggles the strikeout state of the selected text.
If the optional parameter UseCurrentWord is True (the default) then, if nothing is selected but the insertion point is within a word, the method treats the current word as the selection.
The method places <STRIKE> and </STRIKE> tags around the selection. If the selection is already formatted strikeout, the <STRIKE> and </STRIKE> tags are removed. If the selection is within a larger string of strikeout text, the method inserts </STRIKE> and <STRIKE> tags around the selection, effectively turning strikeout 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 strikeout formatting.