diff options
author | Miguel de Icaza <miguel@gnome.org> | 2010-12-13 06:50:06 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2010-12-13 07:32:35 +0300 |
commit | e4f22a9c91c83baff358322696d197d865a4daf4 (patch) | |
tree | abd1f74fc543c98051784a9e75caa40a8e46cb8c /mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs | |
parent | 1146f40c2743b7eaa8a56de5310d180f3de1236c (diff) |
Pass 1 of removing NET_2_0 from winforms
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.cs | 19 |
1 files changed, 0 insertions, 19 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 5b7f9ea8b6b..998448c2cf0 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs @@ -35,9 +35,7 @@ namespace System.Windows.Forms [DefaultProperty ("Text")] [DesignTimeVisible (false)] [ToolboxItem (false)] -#if NET_2_0 [TypeConverter (typeof (ColumnHeaderConverter))] -#endif public class ColumnHeader : Component, ICloneable { #region Instance Variables @@ -45,12 +43,10 @@ namespace System.Windows.Forms private string text = "ColumnHeader"; private HorizontalAlignment text_alignment = HorizontalAlignment.Left; private int width = ThemeEngine.Current.ListViewDefaultColumnWidth; -#if NET_2_0 private int image_index = -1; private string image_key = String.Empty; private string name = String.Empty; private object tag; -#endif private int display_index = -1; // internal variables @@ -70,7 +66,6 @@ namespace System.Windows.Forms CalcColumnHeader (); } -#if NET_2_0 internal ColumnHeader (string key, string text, int width, HorizontalAlignment textAlign) { Name = key; @@ -79,13 +74,11 @@ namespace System.Windows.Forms this.text_alignment = textAlign; CalcColumnHeader (); } -#endif #endregion // Internal Constructor #region Public Constructors public ColumnHeader () { } -#if NET_2_0 public ColumnHeader (int imageIndex) { ImageIndex = imageIndex; @@ -95,7 +88,6 @@ namespace System.Windows.Forms { ImageKey = imageKey; } -#endif #endregion // Public Constructors #region Private Internal Methods Properties @@ -188,7 +180,6 @@ namespace System.Windows.Forms #region Public Instance Properties -#if NET_2_0 [Localizable (true)] [RefreshProperties (RefreshProperties.Repaint)] public int DisplayIndex { @@ -260,7 +251,6 @@ namespace System.Windows.Forms return owner.SmallImageList; } } -#endif [Browsable (false)] public int Index { @@ -277,7 +267,6 @@ namespace System.Windows.Forms get { return owner; } } -#if NET_2_0 [Browsable (false)] public string Name { get { @@ -300,7 +289,6 @@ namespace System.Windows.Forms tag = value; } } -#endif [Localizable (true)] public string Text { @@ -311,10 +299,8 @@ namespace System.Windows.Forms if (owner != null) owner.Redraw (true); -#if NET_2_0 // UIA Framework: Raising Value changed event OnUIATextChanged (); -#endif } } } @@ -347,7 +333,6 @@ namespace System.Windows.Forms #endregion // Public Instance Properties #region Public Methods -#if NET_2_0 public void AutoResize (ColumnHeaderAutoResizeStyle headerAutoResize) { switch (headerAutoResize) { @@ -364,7 +349,6 @@ namespace System.Windows.Forms typeof (ColumnHeaderAutoResizeStyle)); } } -#endif public object Clone () { @@ -391,7 +375,6 @@ namespace System.Windows.Forms } #endregion // Protected Methods -#if NET_2_0 #region UIA Framework: Methods, Properties and Events @@ -410,7 +393,5 @@ namespace System.Windows.Forms } #endregion - -#endif } } |