如何获取RichEdit全部内容的TRect?
如何获取RichEdit全部内容的TRect?
我有一个使用 TRangeformat 将 richEdit 保存为图像的功能,但问题是我们是定义要打印的矩形的人。我怎样才能得到打印整个内容的精确矩形?
thnax
How can i get the TRect of the whole content of the RichEdit?
i have a function to save the richEdit as image using the TRangeformat, but the problem is we are the one to define the rect where to be printed. how can i get the exact rect to print the whole content?
thnax
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多关于如何使用 Delphi 让 Windows 绘制画布的示例。这是一个可能有帮助的。
http://www.delphi-central.com/tutorials/Print_Preview.aspx< /a>
还有更多:
测量 TRichEdit 全文大小
There are lots of example on how to make windows paint a canvas with Delphi. Here is one that might help.
http://www.delphi-central.com/tutorials/Print_Preview.aspx
And some more:
Measuring size full text of TRichEdit