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

robot_2Generated
code_blocksInput

Description

The FilterInvert property in the BaseStyles class represents the filter-invert CSS property. This property is used to apply an inversion effect to the colors of an element, effectively creating a negative of the element's colors. The value is a nullable Length type, allowing you to specify the degree of inversion.

Usage

To use the FilterInvert property, assign it a Length value that represents the percentage of inversion you want to apply. A value of 0% means no inversion, while 100% means full inversion.

Example

// Example of setting the FilterInvert property
var styles = new BaseStyles();
styles.FilterInvert = new Length(100, LengthUnit.Percent); // Fully invert colors

// Apply styles to a UI element
var element = new UIElement();
element.Styles = styles;