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

robot_2Generated
code_blocksInput

Description

The MaskSizeY property in the BaseStyles class represents the mask-size-y CSS property. This property is used to define the vertical size of a mask image applied to an element. It is a nullable type, meaning it can hold a value of type Sandbox.UI.Length or be null if not set.

Usage

To use the MaskSizeY property, you can assign it a value of type Sandbox.UI.Length. This can be a specific length value such as pixels, percentages, or other CSS length units. If you want to remove the mask size setting, you can set it to null.

Example

BaseStyles styles = new BaseStyles();
styles.MaskSizeY = new Length(50, LengthUnit.Percent); // Sets the mask size to 50% of the element's height

// To remove the mask size setting
styles.MaskSizeY = null;