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

KryptonPaletteTabButton() public method

Initialize a new instance of the KryptonPaletteTabButton class.
public KryptonPaletteTabButton ( PaletteRedirect redirect, PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Redirector to inherit values from.
backStyle PaletteBackStyle Background style.
borderStyle PaletteBorderStyle Border style.
contentStyle PaletteContentStyle Content style.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public KryptonPaletteTabButton(PaletteRedirect redirect,
                                       PaletteBackStyle backStyle,
                                       PaletteBorderStyle borderStyle,
                                       PaletteContentStyle contentStyle,
                                       NeedPaintHandler needPaint)
        {
            // Create the storage objects
            _stateFocus = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
            _stateCommon = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
            _stateDisabled = new PaletteTabTriple(_stateCommon, needPaint);
            _stateNormal = new PaletteTabTriple(_stateCommon, needPaint);
            _stateTracking = new PaletteTabTriple(_stateCommon, needPaint);
            _statePressed = new PaletteTabTriple(_stateCommon, needPaint);
            _stateSelected = new PaletteTabTriple(_stateCommon, needPaint);
        }