Description
The BorderBottomWidth
property in the BaseStyles
class represents the border-bottom-width
CSS property. This property allows you to specify the width of the bottom border of an element. It is a nullable property of type Sandbox.UI.Length
, which means it can hold a length value or be set to null
if the border width is not specified.
Usage
To use the BorderBottomWidth
property, you can set it to a specific length value using the Sandbox.UI.Length
type. This can be done in pixels, percentages, or other CSS length units. If you want to remove the bottom border width, you can set this property to null
.
Example
// Example of setting the BorderBottomWidth property
var styles = new BaseStyles();
styles.BorderBottomWidth = new Length(2, LengthUnit.Pixel); // Sets the bottom border width to 2 pixels
// Example of removing the bottom border width
styles.BorderBottomWidth = null;