clear()

Parent Previous Next


TwScript:   TW.target.clear();


Any text selected (highlighted) in the editor will be cleared.


Example:


TW.target.clear();




TeXDocument.cpp


void TeXDocument::clear()

{

       textEdit->textCursor().removeSelectedText();

}



Qt 4.4  void QTextCursor::removeSelectedText ()

If there is a selection, its content is deleted; otherwise does nothing.

See also hasSelection().

reference: http://doc.trolltech.com/4.4/qtextcursor.html#removeSelectedText



Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents