【发布时间】:2016-03-01 00:15:45
【问题描述】:
【问题讨论】:
-
看起来像一个自定义的富文本框,具有特殊的字体类型和根据方程长度动态数量的空白.. 不是那么容易! :D
标签: c# winforms richtextbox
【问题讨论】:
标签: c# winforms richtextbox
尝试使用SelectionIndent 属性,而不是\t。它使用像素值:
rtb.AppendText("A" + Environment.NewLine);
rtb.SelectionIndent = 36;
rtb.AppendText(new string('B', 250));
rtb.AppendText(Environment.NewLine);
rtb.SelectionIndent = 0;
rtb.AppendText("C");
【讨论】: