3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 using System.Collections;
24 using System.ComponentModel.Design;
25 using System.ComponentModel;
26 using System.Drawing.Design;
27 using System.Runtime.Serialization;
28 using System.Web.UI.WebControls;
30 namespace System.Web.UI.Design
33 public class WebControlToolboxItem : ToolboxItem
35 #region Public Instance Constructors
37 public WebControlToolboxItem ()
44 public WebControlToolboxItem (Type type)
50 #endregion Public Instance Constructors
52 #region Override implementation of ToolboxItem
55 protected override IComponent[] CreateComponentsCore (IDesignerHost host)
57 throw new NotImplementedException ();
61 protected override void Serialize (SerializationInfo info, StreamingContext context)
63 base.Serialize (info, context);
64 if (this.toolData != null)
66 info.AddValue ("ToolData", this.toolData);
68 if (this.persistChildren != -1)
70 info.AddValue ("PersistChildren", this.persistChildren);
75 protected override void Deserialize (SerializationInfo info, StreamingContext context)
77 base.Deserialize (info, context);
78 toolData = info.GetString ("ToolData");
79 persistChildren = info.GetInt32 ("PersistChildren");
83 public override void Initialize (Type type)
85 throw new NotImplementedException ();
88 #endregion Override implementation of ToolboxItem
90 #region Public Instance Methods
93 public object GetToolAttributeValue (IDesignerHost host, Type attributeType)
95 throw new NotImplementedException ();
99 public string GetToolHtml (IDesignerHost host)
101 throw new NotImplementedException ();
105 public Type GetToolType (IDesignerHost host)
107 throw new NotImplementedException ();
110 #endregion Public Instance Methods
112 #region Private Instance Fields
114 private int persistChildren;
115 private string toolData;
117 #endregion Private Instance Fields