【EverEdit用户手册】Document >> GhostTyping

 

 

1 Document >> GhostTyping

幽灵打印

原型:

void GhostTyping(string text, int speed=100);

1.1 参数

text

 [in] string类型,待打印的文字

speed=100

 [in] int类型,插入文字间隔,单位毫秒

1.2 返回值

void:无

1.3 版本

EverEdit 4.5.0(4500)及之后版本。

1.4 备注

  该函数会以speed为间隔,逐个字符输出参数text中的文字,直到text输出完成,函数自动停止。

1.5 使用样例

 var doc = App.ActiveDoc;
 doc.GhostTyping("这是一个测试字符串!", 1000);
posted @ 2024-12-14 20:52  tyysoft  阅读(7)  评论(0)    收藏  举报