Hi,
I'm working with the RichTextBox control and I need to change the default alignment of text to justified. How can I do this?
Did some testing, but without success.
Here is the code i am using:
public void SetRichTextBoxSettings(ObservableCollection<Examination> examinations)
{
RichTextBox.HorizontalAlignment = HorizontalAlignment.Stretch;
//foreach (var paragraph in RichTextBox.Document.EnumerateChildrenOfType<Paragraph>())
//{
//paragraph.TextAlignment = RadTextAlignment.Justify;
//}
RichTextBox.DocumentInheritsDefaultStyleSettings = true;
}
Any help would be appreciated.
Best regards,
Cristiano Machado
I'm working with the RichTextBox control and I need to change the default alignment of text to justified. How can I do this?
Did some testing, but without success.
Here is the code i am using:
public void SetRichTextBoxSettings(ObservableCollection<Examination> examinations)
{
RichTextBox.HorizontalAlignment = HorizontalAlignment.Stretch;
//foreach (var paragraph in RichTextBox.Document.EnumerateChildrenOfType<Paragraph>())
//{
//paragraph.TextAlignment = RadTextAlignment.Justify;
//}
RichTextBox.DocumentInheritsDefaultStyleSettings = true;
}
Any help would be appreciated.
Best regards,
Cristiano Machado