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

PaletteDataGridViewContentStates() public method

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

            // Remember inheritance
            _inherit = inherit;

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

            // Default the initial values
            _draw = InheritBool.Inherit;
            _hint = PaletteTextHint.Inherit;
            _trim = PaletteTextTrim.Inherit;
            _color1 = Color.Empty;
            _color2 = Color.Empty;
            _colorStyle = PaletteColorStyle.Inherit;
            _colorAlign = PaletteRectangleAlign.Inherit;
            _colorAngle = -1;
            _imageStyle = PaletteImageStyle.Inherit;
            _imageAlign = PaletteRectangleAlign.Inherit;
            _multiLine = InheritBool.Inherit;
            _multiLineH = PaletteRelativeAlign.Inherit;
        }