.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEAddMolStyles

.. oe:function:: OEAddMolStyles

   .. oe:language:: c++ java csharp

      .. oe:api::

         void OEAddMolStyles(OEChem::OEMolBase& lhs,
                             const OEChem::OEMolBase& rhs,
                             OEChem::OEAtomBase** aa, OEChem::OEBondBase **)

   .. oe:language:: python

      .. oe:api:: python

         OEAddMolStyles(lhs: Union[OEGraphMol,OEMol,OEQMol],
                        rhs: Union[OEGraphMol,OEMol,OEQMol], aa: OEAtomBase,
                        arg4: OEBondBase) -> None

   Merges styles from two molecules, usually utilized when concatenating molecules. 
   :ref:`OEMolBase <OEChem_OEMolBase>` &rhs must have a style because :ref:`OEMolBase <OEChem_OEMolBase>` &lhs will 
   inherit the style from :ref:`OEMolBase <OEChem_OEMolBase>` &rhs.