回复 3楼zhengkun的帖子
我发现只有最后一行文本有缩进,如果多加一个换行的话可以避免这个问题:- private void Form1_Load(object sender, EventArgs e)
- {
- CellStyle cs = this.c1FlexGrid1.Styles.Add("test");
- cs.TextAlign = TextAlignEnum.CenterCenter;
- this.c1FlexGrid1.Rows[0].Style = cs;
- this.c1FlexGrid1.Rows[0].Height = 100;
- this.c1FlexGrid1[0, 1] = "AB\nCD\nCD\nCD\nCD\n";
- }
复制代码 |