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().
精彩评论