2 using System.Collections;
3 using System.ComponentModel.Design;
4 using System.ComponentModel;
5 using System.Drawing.Design;
6 using System.Runtime.Serialization;
7 using System.Web.UI.WebControls;
9 namespace System.Web.UI.Design
12 public class WebControlToolboxItem : ToolboxItem
14 #region Public Instance Constructors
16 public WebControlToolboxItem ()
23 public WebControlToolboxItem (Type type)
29 #endregion Public Instance Constructors
31 #region Override implementation of ToolboxItem
34 protected override IComponent[] CreateComponentsCore (IDesignerHost host)
36 throw new NotImplementedException ();
40 protected override void Serialize (SerializationInfo info, StreamingContext context)
42 base.Serialize (info, context);
43 if (this.toolData != null)
45 info.AddValue ("ToolData", this.toolData);
47 if (this.persistChildren != -1)
49 info.AddValue ("PersistChildren", this.persistChildren);
54 protected override void Deserialize (SerializationInfo info, StreamingContext context)
56 base.Deserialize (info, context);
57 toolData = info.GetString ("ToolData");
58 persistChildren = info.GetInt32 ("PersistChildren");
62 public override void Initialize (Type type)
64 throw new NotImplementedException ();
67 #endregion Override implementation of ToolboxItem
69 #region Public Instance Methods
72 public object GetToolAttributeValue (IDesignerHost host, Type attributeType)
74 throw new NotImplementedException ();
78 public string GetToolHtml (IDesignerHost host)
80 throw new NotImplementedException ();
84 public Type GetToolType (IDesignerHost host)
86 throw new NotImplementedException ();
89 #endregion Public Instance Methods
91 #region Private Instance Fields
93 private int persistChildren;
94 private string toolData;
96 #endregion Private Instance Fields