public Size?GetPartSize(Graphics graphics, StateTypeId state)
            {
                VisualStyleRenderer renderer = GetRenderer(state);

                if (renderer == null)
                {
                    return(null);
                }

                Size size = renderer.GetPartSize(graphics, ThemeSizeType.True);

                return(size.AddHorizontally(_paddingLeft?.GetPartSize(graphics, state),
                                            _paddingRight?.GetPartSize(graphics, state)));
            }