Description
The FilterBorderWidth
property in the BaseStyles
class represents the filter-border-width
CSS property. This property is used to define the width of the border when applying a filter effect to an element. It is a nullable property of type Length
, allowing you to specify the width in various units such as pixels, percentages, or other CSS length units.
Usage
To use the FilterBorderWidth
property, you can set it to a specific Length
value to define the border width for filter effects. If you do not set this property, it will remain null
, meaning no specific border width is applied for filter effects.
Example
// Example of setting the FilterBorderWidth property
BaseStyles styles = new BaseStyles();
styles.FilterBorderWidth = new Length(2, LengthUnit.Pixel); // Sets the filter border width to 2 pixels
// Example of clearing the FilterBorderWidth property
styles.FilterBorderWidth = null; // Removes any specific filter border width setting