Author: andreia
Date: 2007-03-06 18:01:17 -0500 (Tue, 06 Mar 2007)
New Revision: 73856
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Label.cs
Log:
* Label.cs: Implement AutoEllipsis (2.0)
2007-03-06 Andreia Gaita <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-06 22:54:29 UTC (rev 73855)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-06 23:01:17 UTC (rev 73856)
@@ -1,3 +1,7 @@
+2007-03-06 Andreia Gaita <[EMAIL PROTECTED]>
+
+ * Label.cs: Implement AutoEllipsis (2.0)
+
2007-03-06 Jackson Harper <[EMAIL PROTECTED]>
* TreeView.cs: Implement 2.0 TopNode setter property.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Label.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Label.cs
2007-03-06 22:54:29 UTC (rev 73855)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Label.cs
2007-03-06 23:01:17 UTC (rev 73856)
@@ -47,6 +47,9 @@
public class Label : Control
{
private bool autosize;
+#if NET_2_0
+ private bool auto_ellipsis;
+#endif
private Image image;
private bool render_transparent;
private FlatStyle flat_style;
@@ -150,6 +153,30 @@
}
#region Public Properties
+
+#if NET_2_0
+ [DefaultValue (false)]
+ [Browsable (true)]
+ [EditorBrowsable (EditorBrowsableState.Always)]
+ public bool AutoEllipsis
+ {
+ get { return this.auto_ellipsis; }
+ set
+ {
+ if (this.auto_ellipsis != value) {
+ this.auto_ellipsis = value;
+
+ if (this.auto_ellipsis)
+ string_format.Trimming =
StringTrimming.EllipsisCharacter;
+ else
+ string_format.Trimming =
StringTrimming.Character;
+
+ this.Invalidate ();
+ }
+ }
+ }
+#endif
+
[DefaultValue(false)]
[Localizable(true)]
[RefreshProperties(RefreshProperties.All)]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches