开发者

how to clip text of the RichTexBox

开发者 https://www.devze.com 2022-12-30 07:24 出处:网络
hi I have RichTextBox bind to description(html format) from database and it is read only. I just need to show First line from description. How to achie开发者_如何学运维ve thisAs Silverlight has no way

hi I have RichTextBox bind to description(html format) from database and it is read only. I just need to show First line from description. How to achie开发者_如何学运维ve this


As Silverlight has no way of measuring the width of fonts, you'll need to take an arbitrary amount of the text, and simply Substring() it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号