.. highlightlang:: us .. _auto_assignstyleorder: auto_AssignStyleOrder ===================== .. index:: auto_AssignStyleOrder .. us.tag auto_AssignStyleOrder NOTREADYENGLISH New310 :ref:`auto_AssignStyleOrder` assigns the styles for all 1D and 2D datasets of the given page. .. function:: bool = auto_AssignStyleOrder(hPage) bool = auto_AssignStyleOrder(hPage, ssStyleFile) .. us.return **Return Value** *bool* is TRUE (1), when the style was assigned and otherwise FALSE (0). .. us.params **Parameters** .. uparam:: hPage *hPage* is the handle of a page. .. uparam:: ssStyleFile *ssStyleFile* is the name of a style file. If this parameter is not specified, the function will use the file that is selected in dialog box :ref:`toolsdataset-style-order-configuration`. .. us.example **Example** :: hPage = auto_LoadTemplate(); .. .. auto_AssignStyleOrder(hPage); .. seealso:: :ref:`overview-automation`, :ref:`toolsdataset-style-order-configuration`, :ref:`auto_LoadStyleFile`, :ref:`auto_LoadTemplate`, :ref:`auto_xy_SetStyle` :sub:`id-696395`