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

GetContentShortTextColor2() public method

Gets the second back color for the short text.
public GetContentShortTextColor2 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetContentShortTextColor2(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.HeaderDockInactive:
                        return SystemColors.ControlText;
                    case PaletteContentStyle.HeaderDockActive:
                        return SystemColors.ActiveCaptionText;
                }
            }

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