ToolStrip.Items 的 UITypeEditor 是什么?

发布于 2024-09-09 06:08:24 字数 296 浏览 4 评论 0原文

我仔细浏览了 MSDN 文档,我开始认为这个编辑器被定义为仅限内部。我猜它与 CollectionEditor 类似,尽管它确实提供了任何 ToolStripItem 特定元素。

[EditorAttribute(typeof(System.ComponentModel.Design.CollectionEditor), typeof(System.Drawing.Design.UITypeEditor))]

有谁知道这个编辑器的类 - ToolStrip.Items 使用的那个类?

I've had a long look through MSDN documentation and all I'm starting to think that this editor is defined as Internal only. I'm guessing it is similar to the CollectionEditor, though this does provide any ToolStripItem specific elements.

[EditorAttribute(typeof(System.ComponentModel.Design.CollectionEditor), typeof(System.Drawing.Design.UITypeEditor))]

Does anyone know the class for this editor - the one which ToolStrip.Items uses?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晨曦÷微暖 2024-09-16 06:08:24

看起来它是 System.Design 程序集中的 System.Windows.Forms.Design.ToolStripCollectionEditor 内部类:

[Editor("System.Windows.Forms.Design.ToolStripCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
public class ToolStripItemCollection : ArrangedElementCollection, IList, ICollection, IEnumerable
{
...
}

Looks like it is System.Windows.Forms.Design.ToolStripCollectionEditor internal class from the System.Design assembly:

[Editor("System.Windows.Forms.Design.ToolStripCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
public class ToolStripItemCollection : ArrangedElementCollection, IList, ICollection, IEnumerable
{
...
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文