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

robot_2Generated
code_blocksInput

Description

The FilterSaturate property in the BaseStyles class represents the filter-saturate CSS property. This property is used to adjust the saturation of an element's content, allowing you to increase or decrease the intensity of colors.

Usage

To use the FilterSaturate property, assign it a value of type Sandbox.UI.Length. This value can be a percentage or a unitless number, where 1 represents the original saturation level, values greater than 1 increase saturation, and values less than 1 decrease it.

Example

BaseStyles styles = new BaseStyles();
styles.FilterSaturate = new Length(1.5f); // Increase saturation by 50%