回复 3楼zjl880的帖子
zjl880 你好,
不必客气,建议使用 Table 模拟的横线,测试代码:
- private void insertTableToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.textControl1.InputFormat.FontSize = 30;
- this.textControl1.Tables.Add(1, 1);
- foreach (TXTextControl.Table table in this.textControl1.Tables)
- {
- foreach (TXTextControl.TableCell cell in table.Cells)
- {
- cell.CellFormat.BackColor = System.Drawing.Color.Red;
- }
- }
- this.textControl1.InputFormat.FontSize = 200;
- }
复制代码
效果图:
|