The BorderTopWidth
property in the BaseStyles
class represents the border-top-width
CSS property. This property allows you to specify the width of the top 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.
To use the BorderTopWidth
property, you can assign it a value of type Sandbox.UI.Length
. This can be done using various units such as pixels, percentages, or any other CSS length units supported by the Sandbox.UI.Length
type.
Example usage:
var styles = new BaseStyles();
styles.BorderTopWidth = new Length(5, LengthUnit.Pixel); // Sets the top border width to 5 pixels
You can also set it to null
to remove any specific width setting:
styles.BorderTopWidth = null; // Removes the top border width setting