Posted by a ceTe Software moderator
Hello,
Setting this property to one FormattedTextArea will not affect the other formatted text areas. You have to set this to the specific formatted text area object for which you want to set the alignment.
FormattedTextArea area = new FormattedTextArea(text, 100, 100, 100, 100, FontFamily.Helvetica, 20, true);
//below line is for the "area" object alone.
area.Style.Paragraph.Align = TextAlign.Justify;
You can also create the FormattedTextAreaStyle object for each formatted text area separately. You will have to use this style object in the constructor of the FormattedTextArea. Below is the code.
FormattedTextAreaStyle style = new FormattedTextAreaStyle(FontFamily.Courier, 12, true);
style.Paragraph.Align = TextAlign.Justify;
FormattedTextArea area = new FormattedTextArea(text, 100, 100, 100, 100, style);
Thanks,
ceTe Software Support Team.