.. highlightlang:: us .. index:: LayerGetBoundingBox .. _layergetboundingbox: LayerGetBoundingBox =================== .. us.tag LayerGetBoundingBox NOTREADYENGLISH LayerGet Changed5602 :ref:`LayerGetBoundingBox` returns the bounding box of a diagram. The bounding box is a rectangle that encloses all diagram elements and drawing objects. .. function:: rvBox = LayerGetBoundingBox(hLayer) rvBox = LayerGetBoundingBox(hLayer, nOption) .. us.return **Return Value** *rvBox* is a vector with four elements in centimeters: ``[x, y, dx, dy]``. .. us.params **Parameters** .. uparam:: hLayer Identifies the layer. .. uparam:: nOption *nOption* is one of the following values: .. list-table:: :header-rows: 1 * - Value - Description * - 1 - Layer and x-axis * - 2 - Layer and y-axis * - 3 - Layer and x- and y-axis * - 4 (default) - Layer and x-axis, y-axis and drawing objects .. us.example **Example** :: * LayerGetBoundingBox(120) * 10.2600 -27.8800 7.6200 6.2700 .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Beschreibung * - R2014 - Neuer Parameter *nOption*. .. seealso:: :ref:`overview-diagrams`, :ref:`LayerCreate`, :ref:`PageReplot` :sub:`id-1660550`