ComponentFactory.Krypton.Toolkit.PaletteDrawBordersEditor.GetEditStyle C# (CSharp) Method

GetEditStyle() public method

Gets the editor style used by the EditValue method.
public GetEditStyle ( ITypeDescriptorContext context ) : UITypeEditorEditStyle
context ITypeDescriptorContext An ITypeDescriptorContext that can be used to gain additional context information.
return UITypeEditorEditStyle
        public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
        {
            // We show a drop down for editing the PaletteDrawBorders value.
            if ((context != null) && (context.Instance != null))
                return UITypeEditorEditStyle.DropDown;
            else
                return base.GetEditStyle(context);
        }
PaletteDrawBordersEditor