Represents the filter-hue-rotate
CSS property.
Represents the filter-hue-rotate
CSS property.
The FilterHueRotate
property allows you to apply a hue rotation filter to an element, which adjusts the hue of all colors in the element by a specified angle. This can be useful for creating visual effects or adjusting the color scheme of an element dynamically.
The property is of type System.Nullable<Sandbox.UI.Length>
, meaning it can hold a value representing the angle of rotation in degrees, or it can be null
if no hue rotation is applied.
// Example of setting the FilterHueRotate property var styles = new BaseStyles(); styles.FilterHueRotate = new Length(90, LengthUnit.Degree); // Rotates hue by 90 degrees // To remove the hue rotation styles.FilterHueRotate = null;