本文整理自网络,侵删。
//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;
相关阅读 >>
pos、ansipos、fillchar在Delphi2010中unicode的问题
Delphi 利用hook api函数openprocess与terminateprocess来防止任务管理器结束进程
Delphi webbrowser选中文本操作 设置webbrowser的内容
Delphixe4 版本中,已针对移动平台 引入了 arc 模型
Delphi 10.3.x 截取字符串函数substring 和copy()常用字串符处理函数用法
Delphi用mapfileandchecksum 函数检测 exe 或 dll 是否被修改
Delphi xe7组件tetheringmanager1发送消息
更多相关阅读请进入《Delphi》频道 >>