ComponentFactory.Krypton.Toolkit.PaletteProfessionalOffice2003.GetContentShortTextColor1 C# (CSharp) Method

GetContentShortTextColor1() public method

Gets the first back color for the short text.
public GetContentShortTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetContentShortTextColor1(PaletteContentStyle style, PaletteState state)
        {
            // Only override system palette if a recognized office 2003 color scheme is used
            if (_usingOffice2003)
            {
                if (state == PaletteState.Disabled)
                    return SystemColors.ControlDark;

                switch (style)
                {
                    case PaletteContentStyle.GridHeaderRowList:
                    case PaletteContentStyle.GridHeaderRowSheet:
                    case PaletteContentStyle.GridHeaderRowCustom1:
                    case PaletteContentStyle.GridHeaderColumnList:
                    case PaletteContentStyle.GridHeaderColumnSheet:
                    case PaletteContentStyle.GridHeaderColumnCustom1:
                    case PaletteContentStyle.HeaderDockInactive:
                        return SystemColors.ControlText;
                    case PaletteContentStyle.HeaderDockActive:
                        return SystemColors.ActiveCaptionText;
                }
            }

            // Get everything else from the base class implementation
            return base.GetContentShortTextColor1(style, state);
        }