C#自定义集合编辑器回调

时间:2011-09-01 08:38:52

标签: c# collections callback editor

我创建了一个自定义集合编辑器,它从属性编辑器中的...按钮开始,用于列表项。有一个名为CustomCollectionEditor的包装类,它启动一个表单frmCustomCollectionEditor。为此,我添加了一行

[Editor(typeof(CustomCollectionEditor), typeof(UITypeEditor))]

在集合(字符串)之上,例如:

class Item
  {
    [Editor(typeof(CustomCollectionEditor), typeof(UITypeEditor))]
      public string[] Items { get; set; }
  }

但是,现在我想将CustomCollectionEditor中的东西传递给该项目。我不知道该怎么做。

0 个答案:

没有答案