2004-12-02 Lluis Sanchez Gual <lluis@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / TreeNodeStyle.cs
index 9f1fd5199579916ff3abb108f22326cd879de5f8..329014564a0a31b2f8389756a35afc169dec5f93 100644 (file)
@@ -32,6 +32,7 @@
 
 using System;
 using System.Web.UI;
+using System.ComponentModel;
 
 namespace System.Web.UI.WebControls
 {
@@ -43,6 +44,10 @@ namespace System.Web.UI.WebControls
                private static int SPACING = (0x01 << 19);
                private static int VERT_PADD = (0x01 << 20);
                
+               [DefaultValue ("")]
+               [UrlProperty]
+               [NotifyParentProperty (true)]
+               [Editor ("System.Web.UI.Design.ImageUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
                public string ImageUrl {
                        get {
                                if(IsSet(IMG_URL))
@@ -57,6 +62,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (0)]
+               [NotifyParentProperty (true)]
                public int ChildNodesPadding {
                        get {
                                if(IsSet(CHILD_PADD))
@@ -69,6 +76,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (0)]
+               [NotifyParentProperty (true)]
                public int HorizontalPadding {
                        get {
                                if(IsSet(HORZ_PADD))
@@ -81,6 +90,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (0)]
+               [NotifyParentProperty (true)]
                public int VerticalPadding {
                        get {
                                if(IsSet(VERT_PADD))
@@ -93,6 +104,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (0)]
+               [NotifyParentProperty (true)]
                public int NodeSpacing {
                        get {
                                if(IsSet(SPACING))