Description
The FilterBlur
property in the BaseStyles
class represents the filter-blur
CSS property. This property is used to apply a blur effect to an element, similar to the CSS filter: blur()
function. The value is of type Nullable<Length>
, allowing you to specify the blur radius in various units such as pixels, ems, etc., or leave it unset.
Usage
To use the FilterBlur
property, assign it a Length
value representing the desired blur radius. If you want to remove the blur effect, set the property to null
.
Example
// Example of setting the FilterBlur property
var styles = new BaseStyles();
styles.FilterBlur = new Length(5, LengthUnit.Pixel); // Applies a 5px blur
// Example of removing the blur effect
styles.FilterBlur = null;