.. highlightlang:: us .. _xygetlegendtext: XYGetLegendText =============== .. index:: XYGetLegendText .. us.tag XYGetLegendText ENGLISH XYGet :ref:`XYGetLegendText` returns the legend text of a 1D or 2D dataset. .. function:: ssText = XYGetLegendText(hData) .. us.return **Return Value** *ssText* is the legend text. .. us.params **Parameters** .. uparam:: hData The handle of a dataset created with :ref:`XYCreate` or :ref:`TYCreate`. .. us.comment **Comment** The legend text is used by the legend field functions. .. seealso:: :ref:`overview-xy-datasets`, :ref:`XYCreate`, :ref:`XYSetLegendText` :sub:`id-837990`