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

ViewDrawRibbonContextTitle() public method

Initialize a new instance of the ViewDrawRibbonContextTitle class.
public ViewDrawRibbonContextTitle ( KryptonRibbon ribbon, IPaletteRibbonBack inherit ) : System
ribbon KryptonRibbon Source ribbon control.
inherit IPaletteRibbonBack Source for inheriting the ribbon bacgkground colors.
return System
        public ViewDrawRibbonContextTitle(KryptonRibbon ribbon,
                                          IPaletteRibbonBack inherit)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(inherit != null);

            // Remember incoming references
            _inherit = inherit;
            _ribbon = ribbon;

            // Use a class to convert from ribbon tab to content interface
            _contentProvider = new ContextToContent(ribbon.StateCommon.RibbonGeneral);
        }