UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | EditMenu Verbs > editMenu.setUnderline

editMenu.setUnderline

Syntax editMenu.setUnderline (setting)

Params setting is a boolean determining if selected text should be underlined (true) or have underlining removed (false) if it is presently underlined.

Action Turn underlining on or off for the current text selection, depending on the value of setting.

Returns True if a change was made, false otherwise.

Examples edit (@examples.styleTest)

   » true

Select any line that is not underlined. Now type and execute:
editMenu.setUnderline (true)


   » true

Notice that the text is now underlined. Type and execute:
editMenu.undo ()


   » true

Text returns to its original style.

edit (@examples.styleTest)

   » true

Select the second line in the document. Now type and execute:
editMenu.setUnderline (true)


   » false

This text was already underlined, so no style change took place. The verb returns false to let you know that.

Notes Performs the same action as selecting the Underline command from the Style sub-menu of the Frontier Edit menu.

This verb, like all of the others related to styled text, only works in word processing text windows, not in outlines or tables.

See Also editMenu.plainText

editMenu.setBold

editMenu.setItalic

editMenu.setOutline

editMenu.setShadow

editMenu.undo

Prev | Next | EditMenu Verbs > editMenu.setUnderline

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X