TAdvRichEditor Indentation

Howdy
While it might be easy to select text and indent it, I am trying to add text programmatically as in a chat function to look like

Received Jan 21, 2005 from Sandy

Hi, I got your messages lorem ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been...

Sent Jan 21, 2005 from Ralph
Good job blaLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been
I have the code OK for adding text with colors and font, etc, but can't get the indentation. There
is AdvRichEditor1.SetSelectionIndex(x) but nothing is selected when adding text programatically.

ANy thoughts?
Thanks a bunch


The indent is set with
AdvRichEditor.SetSelectionIndent()

That assumes there is first a selection set and you can set the selection similar as with a TRichEdit, i.e. via properties AdvRichEditor.SelStart, AdvRichEditor.SelLength