How to 'align' text in RichTextBox C#?

前端 未结 5 658
天命终不由人
天命终不由人 2020-12-17 16:27

How do I align the text in a RichTextBox?

\"RTB\"

Basically, the RTB contains:

\"--testing\"

5条回答
  •  长情又很酷
    2020-12-17 17:11

    You would have to change the font to a monospaced font, like Courier. This behavior you're showing is standard with most fonts, as not all characters are the same width.

提交回复
热议问题