【发布时间】:2010-10-25 08:28:58
【问题描述】:
我想避免在我为其编写自定义 UITypeEditor 的特定类型的每个实例上放置 EditorAttribute。
我无法在类型上放置 EditorAttribute,因为我无法修改源代码。
我有一个要使用的唯一 PropertyGrid 实例的引用。
我可以告诉 PropertyGrid 实例(或所有实例)在遇到特定类型时使用自定义 UITypeEditor 吗?
Here 是一篇 MSDN 文章,提供了如何在 .NET 2.0 或更高版本中执行此操作的起点。
【问题讨论】:
标签: c# .net propertygrid uitypeeditor