Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs')
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
index 807c0f6a794..42d49d8e063 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
@@ -307,6 +307,25 @@ namespace System.Windows.Forms
#endregion // Public Instance Properties
#region Public Methods
+#if NET_2_0
+ public void AutoResize (ColumnHeaderAutoResizeStyle headerAutoResize)
+ {
+ switch (headerAutoResize) {
+ case ColumnHeaderAutoResizeStyle.None:
+ break;
+ case ColumnHeaderAutoResizeStyle.ColumnContent:
+ Width = -1;
+ break;
+ case ColumnHeaderAutoResizeStyle.HeaderSize:
+ Width = -2;
+ break;
+ default:
+ throw new InvalidEnumArgumentException ("headerAutoResize", (int) headerAutoResize,
+ typeof (ColumnHeaderAutoResizeStyle));
+ }
+ }
+#endif
+
public object Clone ()
{
ColumnHeader columnHeader = new ColumnHeader ();