public GetEditStyle ( ITypeDescriptorContext context ) : UITypeEditorEditStyle | ||
context | ITypeDescriptorContext | |
return | UITypeEditorEditStyle |
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
{
if (context != null && context.Instance != null)
return UITypeEditorEditStyle.DropDown;
return base.GetEditStyle(context);
}