C# Properties
-
How to make a property look like a list without being an ENUM or BOOL I.E --> using a dynamically allocated array as a property and viewing it as a drop down list - such as the TextAlign property in the TextBox
Its xmas so i dont have much time... but off the top of my head i think its called UITypeEditor. Its a designer thing that you have to do. Google and you shall find. This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy
-
How to make a property look like a list without being an ENUM or BOOL I.E --> using a dynamically allocated array as a property and viewing it as a drop down list - such as the TextAlign property in the TextBox
You can overload the TypeConverter, StringConverter in your case to pass back a StandardCollection value that is an array of values as opposed to a string and it will seen as a drop down list.