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

KryptonPaletteSeparator() public method

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