C#在richtextformatbox中缩放RTF文本 [英] C# Scale RTF text in a richtextformatbox

查看:140
本文介绍了C#在richtextformatbox中缩放RTF文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我正在开发某种文本编辑器以获得乐趣,我遇到了一个问题,我想缩放所选文本或rtfbox中的所有文本,我知道.Zoomfactor,但这不会缩放文字所以它没有给出希望的结果。它也必须是缩放,所以我不能说font.size * = x因为这将从我的知识给出所有文本相同的大小。拜托,如果有人可以帮我,或者提供一些示例代码或给一些线索使用完整的网站(即使感觉我已经在大多数网站上)我会很满。



谢谢 - Jackie



编辑:刚检查,单词和wordpad,它确实有这个功能即时通讯要求,(增加/减少文本)在2003年和更新它应该是文本大小下拉菜单旁边的按钮

解决方案

找到一种方式,我只是咒骂每个人的大小char一个接一个,也许不是最好的解决方案,但它现在有效!感谢

Hi im working on some sort of a text editor for fun, and i ran into a problem, i wanna scale the text selected or all text in a rtfbox, im wel aware of ".Zoomfactor" but this dont scale the "text" so it doesn''t give the wished result. Also it must be a scaling, so i cant just say font.size *= x since this will give all text the same size from my knowledge. please, if anyone could help me out either provide some sample code or give some leads to use full websites (even that it feels like i''ve been around the most sites) i would be great full.

Thanks - Jackie

EDIT: Just checked, word, and wordpad, and it does have this function im asking for, (increase/decrease text) in 2003 and newer it should be the buttons beside the text-size dropdown-menu

解决方案

Found a way, i simply just incrased the size of every char one by one, maybe not the best solution, but it works for now! thanks


这篇关于C#在richtextformatbox中缩放RTF文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆