ComponentFactory.Krypton.Ribbon.PaletteGalleryState.PaletteGalleryState C# (CSharp) Method

PaletteGalleryState() public method

Initialize a new instance of the PaletteGalleryState class.
public PaletteGalleryState ( PaletteGalleryRedirect inherit, NeedPaintHandler needPaint ) : System
inherit PaletteGalleryRedirect Source for inheriting values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public PaletteGalleryState(PaletteGalleryRedirect inherit,
                                   NeedPaintHandler needPaint)
        {
            // Create storage that maps onto the inherit instances
            _ribbonBack= new PaletteRibbonBack(inherit.RibbonGalleryBack, needPaint);
            _ribbonBorder = new PaletteRibbonBack(inherit.RibbonGalleryBorder, needPaint);
        }