.. highlightlang:: us .. _pensetwidth: PenSetWidth =========== .. index:: PenSetWidth .. us.tag PenSetWidth ENGLISH :ref:`PenSetWidth` sets the line width of a pen object. .. function:: bool = PenSetWidth(hPen, nWidth) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hPen Identifies the pen. .. uparam:: nWidth *nWidth* is the width of the pen in 0.1 mm. .. seealso:: :ref:`overview-pens`, :ref:`PenGetWidth` :sub:`id-2105025`