The BorderTopRightRadius
property in the Sandbox.UI.BaseStyles
class represents the border-top-right-radius
CSS property. This property allows you to define the radius of the top-right corner of an element's border, enabling rounded corners.
The BorderTopRightRadius
property in the Sandbox.UI.BaseStyles
class represents the border-top-right-radius
CSS property. This property allows you to define the radius of the top-right corner of an element's border, enabling rounded corners.
To use the BorderTopRightRadius
property, assign it a value of type Sandbox.UI.Length
. This value can be specified in various units such as pixels (px), percentages (%), or any other CSS length units. The property is nullable, meaning it can be set to null
to remove any previously set radius.
// Example of setting the BorderTopRightRadius property var styles = new BaseStyles(); styles.BorderTopRightRadius = new Length(10, LengthUnit.Pixel); // Sets the top-right border radius to 10px // Example of removing the border radius styles.BorderTopRightRadius = null; // Removes the top-right border radius