回复 5楼DCAgile的帖子
1.添加下划线内容:
- TableCell cell1 = tb.Cells.GetItem(3, 1);
- textControl1.Selection.Start = cell1.Start - 1;
- TextField tf = new TextField("test");
- tf.Text = " ";
- this.textControl1.TextFields.Add(tf);
- this.textControl1.Select(tf.Start, tf.Length);
- this.textControl1.Selection.Underline = FontUnderlineStyle.Single;
复制代码
事件:
- this.textControl1.TextFieldClicked += textControl1_TextFieldClicked;
复制代码
2.段落获取方法可以通过文字索引或者Location,方法如下:
- textControl1.Paragraphs.GetItem(0)
复制代码
3.申请居中:
- textControl1.Text = "申请\n";
- textControl1.Paragraphs.GetItem(0).Format.Alignment = TXTextControl.HorizontalAlignment.Center;
复制代码 |