Search code examples
.netwinformstoolstrip

What is the UITypeEditor for 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?


Solution

  • 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
    {
    ...
    }