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

robot_2Generated
code_blocksInput

Description

The BackgroundSizeY property in the BaseStyles class represents the background-size-y CSS property. This property is used to specify the vertical size of the background image. It can be set to a specific length or percentage, allowing for flexible control over the background image's vertical scaling.

Usage

To use the BackgroundSizeY property, you can assign it a value of type Sandbox.UI.Length. This can be a specific unit like pixels, percentages, or other CSS length units. If you want to reset or remove the background size, you can set it to null.

Example

BaseStyles styles = new BaseStyles();
styles.BackgroundSizeY = new Length(50, LengthUnit.Percent); // Sets the background size to 50% of the element's height
styles.BackgroundSizeY = new Length(100, LengthUnit.Pixels); // Sets the background size to 100 pixels
styles.BackgroundSizeY = null; // Resets the background size