System.Nullable<Length> MaskSizeX { get; set; }

robot_2Generated
code_blocksInput

Description

Represents the mask-size-x CSS property. This property specifies the horizontal size of the mask image. It can be set to a specific length or percentage, allowing for flexible control over the mask's dimensions.

Usage

To use the MaskSizeX property, assign it a value of type Sandbox.UI.Length or null if you want to remove the property. The Length type can represent various units such as pixels, percentages, or other CSS length units.

Example

BaseStyles styles = new BaseStyles();
styles.MaskSizeX = new Length(50, LengthUnit.Percent); // Sets the mask size to 50% of the element's width
styles.MaskSizeX = new Length(100, LengthUnit.Pixels); // Sets the mask size to 100 pixels
styles.MaskSizeX = null; // Removes the mask-size-x property