.. highlightlang:: us .. index:: LayerSetLink .. _layersetlink: LayerSetLink ============ .. us.tag LayerSetLink NOTREADYENGLISH LayerSet New340 :ref:`LayerSetLink` sets the link to the grid of a stacked diagram or unlinks a diagram from a stacked diagram. .. function:: bool = LayerSetLink(hLayer, hGridLayer) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hLayer Identifies the layer. .. uparam:: hGridLayer *hGridLayer* is the handle of the diagram (grid) to which the diagram (y-axis) should be linked. To unlink *hLayer* set *hGridLayer* to 0. .. seealso:: :ref:`overview-diagrams`, :ref:`LayerCreate`, :ref:`LayerGetLink`, :ref:`LayerGetAxisLink` :sub:`id-1744084`