回复 1楼远光软件的帖子
问题原因在于默认字体大小导致最新高度无法启作用,需要设置FontSize实现:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.textControl1.Tables.Add(10, 10, 11);
-
- }
- private void dToolStripMenuItem_Click(object sender, EventArgs e)
- {
- TXTextControl.Table tb = this.textControl1.Tables.GetItem(11);
- this.textControl1.SelectAll();
- this.textControl1.Selection.FontSize = 1;
- foreach (TXTextControl.TableRow row in tb.Rows)
- {
- row.MinimumHeight = 1;
- }
- }
复制代码 |