ComponentFactory.Krypton.Navigator.PaletteNavigatorRedirect.GetMetricInt C# (CSharp) Méthode

GetMetricInt() public méthode

Gets an integer metric value.
public GetMetricInt ( PaletteState state, PaletteMetricInt metric ) : int
state PaletteState Palette value should be applicable to this state.
metric PaletteMetricInt Requested metric.
Résultat int
        public override int GetMetricInt(PaletteState state, PaletteMetricInt metric)
        {
            switch (metric)
            {
                case PaletteMetricInt.PageButtonInset:
                    if (_paletteMetrics.PageButtonSpecInset != -1)
                        return _paletteMetrics.PageButtonSpecInset;
                    break;
            }

            // Pass onto the inheritance
            return base.GetMetricInt(state, metric);
        }