System.Nullable<int> ZIndex { get; set; }

robot_2Generated
code_blocksInput

Description

The ZIndex property in the Sandbox.UI.BaseStyles class represents the z-index CSS property. This property is used to specify the stack order of an element. An element with a higher z-index is always in front of an element with a lower z-index.

Usage

To set the ZIndex property, assign it a nullable integer value. A higher value will place the element on top of others with lower values. If not set, the default stacking order is used.

Example

// Example of setting the ZIndex property
var styles = new BaseStyles();
styles.ZIndex = 10; // This element will be on top of elements with lower ZIndex values

// Resetting the ZIndex to default
styles.ZIndex = null;