textfield是文本域,并不是增加书签
增加书签对应的代码如下
- _textControl.DocumentTargets.GetItem();
- string targetName = "test";
- TXTextControl.DocumentTarget target = new TXTextControl.DocumentTarget(targetName) { Deleteable = false };
- _textControl.DocumentTargets.Add(target);
- _fileHandler.DocumentDirty = true;
复制代码
|