delphi从TRichEdit获得RTF格式文本


本文整理自网络,侵删。

 //delphi从TRichEdit获得RTF格式文本

function GetRTF(RE: TRichedit): string;
var
strStream: TStringStream;
begin
strStream := TStringStream.Create('') ;
try
RE.PlainText := False;
RE.Lines.SaveToStream(strStream) ;
Result := strStream.DataString;
finally
strStream.Free
end;
end;

相关阅读 >>

Delphi unigui服务器部署

pos、ansipos、fillchar在Delphi2010中unicode的问题

Delphi 利用hook api函数openprocess与terminateprocess来防止任务管理器结束进程

Delphi webbrowser选中文本操作 设置webbrowser的内容

Delphixe4 版本中,已针对移动平台 引入了 arc 模型

Delphi 10.3.x 截取字符串函数substring 和copy()常用字串符处理函数用法

Delphi 如何识别应用程序没有响应

Delphi用mapfileandchecksum 函数检测 exe 或 dll 是否被修改

Delphi 熊猫烧香核心源码

Delphi xe7组件tetheringmanager1发送消息

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...