Description
The BorderBottomRightRadius
property in the Sandbox.UI.BaseStyles
class represents the border-bottom-right-radius
CSS property. This property is used to define the rounding of the bottom-right corner of an element's border box. It can be set to a specific length or percentage value, allowing for flexible design options.
Usage
To use the BorderBottomRightRadius
property, you can assign it a value of type Sandbox.UI.Length
or null
. A null
value indicates that the property is not set, and the default styling will be applied. The Length
type can represent various units such as pixels, percentages, or other CSS length units.
Example
// Example of setting the BorderBottomRightRadius property
var styles = new BaseStyles();
styles.BorderBottomRightRadius = new Length(10, LengthUnit.Pixel); // Sets the bottom-right border radius to 10 pixels
// Example of setting the BorderBottomRightRadius to a percentage
styles.BorderBottomRightRadius = new Length(50, LengthUnit.Percent); // Sets the bottom-right border radius to 50%
// Example of clearing the BorderBottomRightRadius
styles.BorderBottomRightRadius = null; // Resets to default, no specific border radius applied