ComponentFactory.Krypton.Toolkit.KryptonPaletteHeaderGroupState.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 virtual InheritBool GetMetricBool(PaletteState state, PaletteMetricBool metric)
        {
            // Is this the metric we provide?
            if (metric == PaletteMetricBool.HeaderGroupOverlay)
            {
                // If the user has defined an actual value to use
                if (OverlayHeaders != InheritBool.Inherit)
                    return OverlayHeaders;
            }

            // Pass onto the inheritance
            return _redirect.GetMetricBool(state, metric);
        }