TAdvRichEditor Alignment

Dear experts,


how can I align a text or picture after adding it to the AdvRichEditor?

E.g.:

myAdvRichEditor->AddText("Add Some Text");

How can I now set "Add Some Text" to the center of myAdvRichEditor using code?

I am using Component Pack 7.9.4.1 for XE2 C++

Best,
Mike

Did you try to select the text or picture programmatically and call

AdvRichEditor.SetSelectionAttribute(youralignment);

It works!

Thanks