ComponentFactory.Krypton.Toolkit.PaletteOffice2007Base.GetMetricBool C# (CSharp) Method

GetMetricBool() public method

Gets a boolean metric value.
public GetMetricBool ( PaletteState state, PaletteMetricBool metric ) : InheritBool
state PaletteState Palette value should be applicable to this state.
metric PaletteMetricBool Requested metric.
return InheritBool
        public override InheritBool GetMetricBool(PaletteState state, PaletteMetricBool metric)
        {
            switch (metric)
            {
                case PaletteMetricBool.HeaderGroupOverlay:
                case PaletteMetricBool.SplitWithFading:
                    return InheritBool.True;
                case PaletteMetricBool.RibbonTabsSpareCaption:
                case PaletteMetricBool.TreeViewLines:
                    return InheritBool.False;
                default:
                    // Should never happen!
                    Debug.Assert(false);
                    break;
            }

            return InheritBool.Inherit;
        }
PaletteOffice2007Base