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.