.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEBio

.. oe:function:: OESetDefaultStyle

   .. attention::

      |TWOLANGUAGE|

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

      .. oe:api::

         void OESetDefaultStyle(OEDesignUnit& du)

   .. oe:language:: python

      .. oe:api:: python

         OESetDefaultStyle(du: OEDesignUnitImpl) -> None
         OESetDefaultStyle(du: OEDesignUnit) -> None

   Applies a default visual style to all components of the design unit.
   Any previously applied style is first removed (equivalent to calling
   :oe:func:`OEBio::OEClearDesignUnitStyle`), then element-based coloring
   and component-appropriate display styles are set for each tagged
   component (protein, ligand, site residues, near residues, etc.).

   .. seealso::

      * :oe:func:`OEBio::OEClearDesignUnitStyle` function
      * :ref:`OEDesignUnit <OEBio_OEDesignUnit>` class
