开发者

How to detect was EllipsisWord applied or not?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜