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

robot_2Generated
code_blocksInput

Description

The FilterBrightness property in the Sandbox.UI.BaseStyles class represents the filter-brightness CSS property. This property is used to adjust the brightness of an element's content. The value is of type System.Nullable<Sandbox.UI.Length>, allowing you to specify a length value or leave it unset.

Usage

To use the FilterBrightness property, you can set it to a specific Length value to adjust the brightness of an element. A higher value increases brightness, while a lower value decreases it. If the property is set to null, the default brightness is applied.

Example

// Example of setting the FilterBrightness property
var styles = new BaseStyles();
styles.FilterBrightness = new Length(1.5f); // Increase brightness by 50%

// Resetting to default
styles.FilterBrightness = null;