Aligning in RichTextBox

I have a richTextBox in my form and I append some text into it.


richTextBoxPrintCtrl1.AppendText(rtbVerse.Text + "\n\n");
 


How can I make that text centered


Answer this question

Aligning in RichTextBox

  • P3T3R 7

    Hi -
    To center the text, you can use the Selection Alignment property.

    richTextBoxPrintCtrl1.SelectionAlignment = HorizontalAlignment.Center;

    HTH,
    Karen



  • Aligning in RichTextBox