.. highlightlang:: us .. _objsetfillmode: OBJSetFillMode ============== .. index:: OBJSetFillMode .. us.tag OBJSetFillMode ENGLISH draw-set :ref:`OBJSetFillMode` sets the fill mode for a drawing object or diagram. .. function:: bool = OBJSetFillMode(hobj, rsMode) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hobj *hobj* identifies a line, text, rectangle, ellipse or layer (diagram) object. .. uparam:: rsMode *rsMode* is one of the following values: .. list-table:: :header-rows: 1 * - Value - Meaning * - 0 - Drawing object filled with solid color. * - 1 - Drawing object filled with color gradient. .. us.comment **Comment** The Background mode must be set to OPAQUE. See :ref:`OBJSetBKMode`. .. seealso:: :ref:`overview-drawing-objects`, :ref:`OBJSetBKMode`, :ref:`OBJGetFillMode` :sub:`id-748266`