.. highlightlang:: us .. index:: auto_xy_SetStyle .. _auto_xy_setstyle: auto_xy_SetStyle ================ .. us.tag auto_xy_SetStyle NOTREADYENGLISH :ref:`auto_xy_SetStyle` sets the style of a 2D dataset. .. function:: bool = auto_xy_SetStyle(hData, ssStyle) bool = auto_xy_SetStyle(hData, nStyleIndex) .. us.return **Return Value** *bool* is TRUE (1) if the function was successful, otherwise FALSE (0). .. us.params **Parameters** .. uparam:: hData *hData* is the handle of a 1D or 2D dataset. The handle is returned by the function :ref:`auto_LoadDataset`. .. uparam:: ssStyle *ssStyle* is the name of a style in the active style file. .. uparam:: nStyleIndex *nStyleIndex* is the index of the style. The first style has the index 1. .. seealso:: :ref:`overview-automation`, :ref:`auto_LoadStyleFile`, :ref:`auto_LoadDataset` :sub:`id-543811`