I want to insert some text, like in a usual letter: the date and "Dear John,"...
I tried this:
Now I want to have my date at the right and John at the left.
I tried this:
But it did not work out.
I searched the web for a little bit help about ChangeTextAlignment, but could not find something usefull.
I guess I have to use paragraphs, selection...?
I tried this:
editor.Insert(DateTime.Now.Date.ToShortDateString()); editor.InsertLineBreak(); editor.Insert("Dear John,");...and it works fine!
Now I want to have my date at the right and John at the left.
I tried this:
editor.Insert(DateTime.Now.Date.ToShortDateString());
editor.ChangeTextAlignment(RadTextAlignment.Right);
editor.InsertLineBreak();
editor.Insert("Dear John,");
editor.ChangeTextAlignment(RadTextAlignment.Left);
But it did not work out.
I searched the web for a little bit help about ChangeTextAlignment, but could not find something usefull.
I guess I have to use paragraphs, selection...?