.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OESetStyleIndex

.. oe:function:: OESetStyleIndex

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

      .. oe:api::

         void OESetStyleIndex(OEAtomBase& atom, unsigned int idx)
         void OESetStyleIndex(OEConfBase& conf, unsigned int idx)

   .. oe:language:: python

      .. oe:api:: python

         OESetStyleIndex(atom: OEAtomBase, idx: int) -> None
         OESetStyleIndex(conf: OEConfBase, idx: int) -> None

   Sets the style index of a specified :ref:`OEAtomBase <OEChem_OEAtomBase>` 
   or :ref:`OEConfBase <OEChem_OEConfBase>`.