> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/enums/zindexmode.md).

# ZIndexMode

## Overview

ZIndexMode is an Enum that specifies the ZIndex calculation method for SurfaceGuiBase.

It is used as the ZIndexBehavior property in the SurfaceGuiBase class, determining whether ZIndex is calculated as a relative order among sibling elements or calculated globally.

## Items

| Name    | Value | Description                                                                                 |
| ------- | ----- | ------------------------------------------------------------------------------------------- |
| Sibling | 0     | ZIndex is calculated as a relative order among sibling elements that share the same parent. |
| Global  | 1     | ZIndex is calculated globally, determining the order among all SurfaceGuiBase elements.     |

## See also

{% content-ref url="/pages/aqDvNZ2SEeQ5NA0q7K1m" %}
[SurfaceGuiBase](/development/api-reference/classes/surfaceguibase.md)
{% endcontent-ref %}
