2007-08-28 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / DataGridViewButtonColumn.cs
index cce58ec1af24020cd6113a5f243a00f57932b36b..f911f90ce67f190c256ad732c19074e277e0ad0e 100644 (file)
 
 
 #if NET_2_0
+using System.Drawing;
+using System.ComponentModel;
 
 namespace System.Windows.Forms {
 
+       [ToolboxBitmap ("")]
        public class DataGridViewButtonColumn : DataGridViewColumn {
 
                private FlatStyle flatStyle;
@@ -39,26 +42,32 @@ namespace System.Windows.Forms {
                        text = String.Empty;
                }
 
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [Browsable (false)]
                public override DataGridViewCell CellTemplate {
                        get { return base.CellTemplate; }
                        set { base.CellTemplate = value as DataGridViewButtonCell; }
                }
 
+               [Browsable (true)]
                public override DataGridViewCellStyle DefaultCellStyle {
                        get { return base.DefaultCellStyle; }
                        set { base.DefaultCellStyle = value; }
                }
 
+               [DefaultValue (FlatStyle.Standard)]
                public FlatStyle FlatStyle {
                        get { return flatStyle; }
                        set { flatStyle = value; }
                }
 
+               [DefaultValue (null)]
                public string Text {
                        get { return text; }
                        set { text = value; }
                }
 
+               [DefaultValue (false)]
                public bool UseColumnTextForButtonValue {
                        get {
                                if (base.CellTemplate == null) {