editMenu.setBold

Syntax editMenu.setBold (setting)

Params setting is a boolean determining if selected text should be boldfaced (true) or have the boldface removed (false) if it is presently bold.

Action Turns bold style on or off for the current text selection, depending on value of setting.

Returns True if a change was made, false otherwise.

Examples edit (@examples.styleTest)

   » true

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


   » true

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


   » true

Text returns to its original style.

edit (@examples.styleTest)

   » true

Select the first line in the document. Now type and execute:
editMenu.setBold (true)


   » false

This text was already bold, so no style change took place. Verb returns false to let you know that.

Notes Performs the same action as selecting the Bold 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.setItalic

editMenu.setOutline

editMenu.setShadow

editMenu.setUnderline

editMenu.undo

Discuss