Highlighting text with LotusScript

Through the user interface there are three highlighters available (yellow, pink, and blue) that will set the background of selected text to the corresponding color. Is there a way to do the same thing with LotusScript code as it adds text to a document?