有如下语句:
int start = this.textControl1.InputPosition.TextPosition;
int length = 1;
this.textControl1.Selection.Start = start;
this.textControl1.Selection.Length = length;
this.textControl1.Text += this.textControl1.Selection.Text;
假如当前textControl1.text的值是abcdefg这几个字符,插入点位置在字符的最末尾,执行如上的语句,Selection.text的值是整个textControl1.text |
|