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

ViewDrawRibbonCaptionArea() public method

Initialize a new instance of the ViewDrawRibbonCaptionArea class.
public ViewDrawRibbonCaptionArea ( KryptonRibbon ribbon, PaletteRedirect redirect, ViewDrawRibbonComposition compositionArea, NeedPaintHandler needPaintDelegate ) : System
ribbon KryptonRibbon Reference to owning ribbon control.
redirect ComponentFactory.Krypton.Toolkit.PaletteRedirect Reference to redirector for palette settings.
compositionArea ViewDrawRibbonComposition Reference to the composition element.
needPaintDelegate NeedPaintHandler Delegate for notifying paint/layout changes.
return System
        public ViewDrawRibbonCaptionArea(KryptonRibbon ribbon,
                                         PaletteRedirect redirect,
                                         ViewDrawRibbonComposition compositionArea,
                                         NeedPaintHandler needPaintDelegate)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(redirect != null);
            Debug.Assert(compositionArea != null);
            Debug.Assert(needPaintDelegate != null);

            // Remember incoming references
            _ribbon = ribbon;
            _compositionArea = compositionArea;
            _needPaintDelegate = needPaintDelegate;
            _needIntegratedDelegate = new NeedPaintHandler(OnIntegratedNeedPaint);

            // Create a special redirector for overriding the border setting
            _redirect = new PaletteCaptionRedirect(redirect);

            CreateViewElements();
            SetupParentMonitoring();
        }