public static Rectangle GetGridArea(ScoreEditorConfig config, System.Drawing.Size clientSize) { var area = RectangleHelper.Build((clientSize.Width - config.BarAreaWidth) / 2 + (config.InfoAreaWidth + config.GridNumberAreaWidth), 0, config.GridAreaWidth, clientSize.Height); return(area); }