本文整理自网络,侵删。
//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 网上获取北京时间 tinifile.readsection 方法在 android 下的应用及各种字符编码问题
Delphi winapi: getparent - 判断两个窗口是不是父子关系
更多相关阅读请进入《Delphi》频道 >>