Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ConverterSample : System.ComponentModel.StringConverter
- {
- public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
- {
- //true means show a combobox
- return true;
- }
- public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
- {
- return false;
- }
- public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
- {
- return new StandardValuesCollection(new List<string>(){"Stack", "overflow", "rules");
- }
Add Comment
Please, Sign In to add comment