.. highlightlang:: us .. index:: LayerSetAxisLink .. _layersetaxislink: LayerSetAxisLink ================ .. us.tag LayerSetAxisLink NOTREADYENGLISH LayerSet :ref:`LayerSetAxisLink` sets with which other diagram the x- or y-axis should be linked to. .. function:: bool = LayerSetAxisLink(hLayer, ssXY, hLinkLayer) .. 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:: ssXYZ *ssXYZ* is ``"X"`` for the x-axis or ``"Y"`` for the y-axis. .. uparam:: hLinkLayer *hLinkLayer* is the handle of the diagram to which the x- or y-axis should be linked. If *hLinkLayer* is 0, the axis link will be removed. .. us.comment **Comment** Only layers belonging to the same page can be linked. .. seealso:: :ref:`overview-diagrams`, :ref:`LayerCreate`, :ref:`LayerGetAxisLink` :sub:`id-1020785`