2002-10-29 Gaurav Vaish <gvaish_mono@lycos.com>
[mono.git] / mcs / class / System.Design / System.Web.UI.Design.WebControls / TableCellsCollectionEditor.cs
1 /**
2  * Namespace:   System.Web.UI.Design.WebControls
3  * Class:       TableCellsCollectionEditor
4  *
5  * Author:      Gaurav Vaish
6  * Maintainer:  gvaish_mono@lycos.com
7  *
8  * (C) Gaurav Vaish (2002)
9  */
10
11 using System;
12 using System.ComponentModel.Design;
13 using System.Reflection;
14 using System.Web.UI.WebControls;
15 using System.Web.UI.Design;
16
17 namespace System.Web.UI.Design.WebControls
18 {
19         public class TableCellsCollectionEditor : CollectionEditor
20         {
21                 public TableCellsCollectionEditor(Type type) : base(type)
22                 {
23                 }
24
25                 protected override bool CanSelectMultipleInstances()
26                 {
27                         return false;
28                 }
29
30                 protected override object CreateInstance(Type itemType)
31                 {
32                         return Activator.CreateInstance(itemType, BindingFlags.Public |
33                                                         BindingFlags.CreateInstance |
34                                                         BindingFlags.Instance,
35                                                         null, null, null);
36                 }
37         }
38 }