public BorderComponent(int[] connectedLineStyle, Color foreground, Color background) { if (!CellSurface.ValidateLineStyle(connectedLineStyle)) { throw new ArgumentException("The connected line array is invalid.", nameof(connectedLineStyle)); } _borderGlyphs = connectedLineStyle; _borderCellStyle = new Cell(foreground, background); }