qinzhu_ 你好,
1.可以通过 TextField 去实现书签功能,代码如下:
- TXTextControl.Selection selection = this.textControl1.Selection;
- TXTextControl.TextField bookMark = new TXTextControl.TextField();
- bookMark.Name = "1";
- bookMark.Text = selection.Text;
- this.textControl1.Selection.Text = "";
- this.textControl1.TextFields.Add(bookMark);
复制代码
2.建议楼主参考随机安装 Demo,路径为:C:\Users\icemanwang\Documents\TX Text Control 17.0.NET for Windows Forms\Samples\WinForms\CSharp\TextFields\Fields3 |