.. highlightlang:: us .. _xysetpen: XYSetPen ======== .. index:: XYSetPen .. us.tag XYSetPen ENGLISH XYSet :ref:`XYSetPen` sets the dataset pen. .. function:: bool = XYSetPen(hData, hPen) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hData The handle of a dataset created with :ref:`XYCreate` or :ref:`TYCreate`. .. uparam:: hPen *hPen* is the handle of a pen created with :ref:`PenCreate`. .. seealso:: :ref:`overview-xy-datasets`, :ref:`XYGetPen`, :ref:`XYShowLine`, :ref:`PenCreate`, :ref:`XYCreate` :sub:`id-560084`