ComponentFactory.Krypton.Toolkit.PaletteInputControlContentStates.PaletteInputControlContentStates C# (CSharp) Method

PaletteInputControlContentStates() public method

Initialize a new instance of the PaletteInputControlContentStates class.
public PaletteInputControlContentStates ( IPaletteContent inherit, NeedPaintHandler needPaint ) : System
inherit IPaletteContent Source for inheriting defaulted values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public PaletteInputControlContentStates(IPaletteContent inherit,
                                                NeedPaintHandler needPaint)
        {
            Debug.Assert(inherit != null);

            // Remember inheritance
            _inherit = inherit;

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Default the initial values
            _font = null;
            _color1 = Color.Empty;
            _padding = CommonHelper.InheritPadding;
        }