ComponentFactory.Krypton.Toolkit.PaletteRibbonDoubleInheritOverride.GetRibbonTextColor C# (CSharp) Method

GetRibbonTextColor() public method

Gets the tab color for the item text.
public GetRibbonTextColor ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetRibbonTextColor(PaletteState state)
        {
            if (_apply)
            {
                Color ret = _primaryText.GetRibbonTextColor(_override ? _state : state);

                if (ret == Color.Empty)
                    ret = _backupText.GetRibbonTextColor(state);

                return ret;
            }
            else
                return _backupText.GetRibbonTextColor(state);
        }