How do I detect if a System.Windows.Forms.Label with AutoEllipsis is actually displaying ellipsis?
Posted
by SchlaWiener
on Stack Overflow
See other posts from Stack Overflow
or by SchlaWiener
Published on 2010-06-10T09:39:20Z
Indexed on
2010/06/10
9:42 UTC
Read the original article
Hit count: 314
I have a Windows Forms Application where I display some client data in a Label.
I have set label.AutoEllipsis = true.
If the text is longer than the label, it looks like this:
Some Text
Some longe... // label.Text is actually "Some longer Text"
// Full text is displayed in a tooltip
which is what I want.
But now I want to know if the label makes use of the AutoEllipsis feature at runtime. How do I achive that?
© Stack Overflow or respective owner