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

ViewDrawRibbonKeyTip() public method

Initialize a new instance of the ViewDrawRibbonKeyTip class.
public ViewDrawRibbonKeyTip ( KeyTipInfo keyTipInfo, IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteContent paletteContent ) : System
keyTipInfo KeyTipInfo Key tip information to display.
paletteBack IPaletteBack Background palette for appearance.
paletteBorder IPaletteBorder Border palette for appearance.
paletteContent IPaletteContent Content palette for appearance.
return System
        public ViewDrawRibbonKeyTip(KeyTipInfo keyTipInfo,
                                    IPaletteBack paletteBack,
                                    IPaletteBorder paletteBorder,
                                    IPaletteContent paletteContent)
            : base(paletteBack, paletteBorder)
        {
            _keyTipInfo = keyTipInfo;

            // Create view for the key tip text
            _drawContent = new ViewDrawContent(paletteContent, this, VisualOrientation.Top);

            // Add content as filler for ourself
            Add(_drawContent, ViewDockStyle.Fill);
        }