加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

WPF中的自定义文本换行

发布时间:2020-12-14 16:43:13 所属栏目:资源 来源:网络整理
导读:有没有办法在 WPF中的非矩形容器中包装文本? Here is how it is done in photoshop 解决方法 遗憾的是,如果没有完全实现TextFormatter,就没有直接的方法. MSDN article on the basics of an Advanced TextFormatter: The text layout and UI controls in W
有没有办法在 WPF中的非矩形容器中包装文本?

Here is how it is done in photoshop

解决方法

遗憾的是,如果没有完全实现TextFormatter,就没有直接的方法. MSDN article on the basics of an Advanced TextFormatter:

The text layout and UI controls in WPF provide formatting properties that allow you to easily include formatted text in your application. These controls expose a number of properties to handle the presentation of text,which includes its typeface,size,and color. Under ordinary circumstances,these controls can handle the majority of text presentation in your application. However,some advanced scenarios require the control of text storage as well as text presentation. WPF provides an extensible text formatting engine for this purpose.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读