开发者

How to detect was EllipsisWord applied or not?

开发者 https://www.devze.com 2023-01-30 12:50 出处:网络
In winforms app I use Graphics.DrawString(String, Font, Brush, RectangleF, StringFormat) with StringTrimming.EllipsisWord for the last parameter. How can I know was the String ellipse开发者_Python百科

In winforms app I use Graphics.DrawString(String, Font, Brush, RectangleF, StringFormat) with StringTrimming.EllipsisWord for the last parameter. How can I know was the String ellipse开发者_Python百科d by the method or not?


You can't tell directly. You'll have to measure first to see if it fits, Graphics.MeasureString().

0

精彩评论

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

关注公众号