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

robot_2Generated
code_blocksInput

Description

The MaskMode property in the BaseStyles class represents the mask-mode CSS property. This property is used to define the compositing mode for the mask image, determining how the mask image is applied to the element it is associated with.

Usage

To use the MaskMode property, you can set it to a value from the Sandbox.UI.MaskMode enumeration. This property is nullable, meaning it can be set to null if no mask mode is desired.

Example

// Example of setting the MaskMode property
BaseStyles styles = new BaseStyles();
styles.MaskMode = MaskMode.Alpha; // Sets the mask mode to use the alpha channel of the mask image

// To clear the mask mode
styles.MaskMode = null;