- private void Form1_Load(object sender, EventArgs e)
- {
- int tableID = 10;
- textControl1.Tables.Add(6, 3, tableID);
- TXTextControl.Table table = textControl1.Tables.GetItem(tableID);
- table.Cells.GetItem(1, 1).Text = "Date / Time";
- table.Cells.GetItem(1, 2).Text = "Customer data";
- table.Cells.GetItem(1, 3).Text = "Result";
- }
- private void button1_Click(object sender, EventArgs e)
- {
- this.textControl1.Selection.Start = this.textControl1.InputPosition.TextPosition;
- this.textControl1.Selection.Text = "插入文本";
- }
复制代码
InserttoCellTest.rar
(9.39 KB, 下载次数: 179)
|