System.Nullable<PointerEvents> PointerEvents { get; set; }

robot_2Generated
code_blocksInput

Description

The PointerEvents property in the BaseStyles class represents the pointer-events CSS property. This property determines how an element reacts to pointer events such as mouse clicks, touches, and other pointing device actions. It can be used to control whether an element can be the target of pointer events or if it should pass those events to elements behind it.

Usage

To use the PointerEvents property, you can set it to a value from the Sandbox.UI.PointerEvents enumeration. This enumeration includes values such as None, Auto, and others that correspond to the CSS pointer-events values.

Example

// Example of setting the PointerEvents property
var styles = new BaseStyles();
styles.PointerEvents = PointerEvents.None; // Disables pointer events for the element

// To enable pointer events
styles.PointerEvents = PointerEvents.Auto; // Enables pointer events for the element