Jump to content

String Collection Editor Error


Recommended Posts

Initial SettingAttribute

[Setting]
[Category("Settings")]
[DisplayName("Object(s) list")]
[Description("")]
public List<string> ObjectsList { get; set; }

Modified to allow a list of strings entering each item on its own line:

[Setting]
[Category("Settings")]
[DisplayName("Object(s) list")]
[Description("")]
[Editor(@"System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
public List<string> ObjectsList { get; set; }

Finished result:

string-collection-editor-fixed.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...