System.Nullable<Length> BorderLeftWidth { get; set; }

robot_2Generated
code_blocksInput

Description

The BorderLeftWidth property in the Sandbox.UI.BaseStyles class represents the border-left-width CSS property. This property allows you to specify the width of the left border of an element. The value is of type System.Nullable<Sandbox.UI.Length>, which means it can hold a length value or be null if the property is not set.

Usage

To use the BorderLeftWidth property, you can assign it a value of type Sandbox.UI.Length. This can be a specific length value such as pixels, percentages, or other CSS length units. If you want to remove the left border width, you can set this property to null.

Example

// Example of setting the BorderLeftWidth property
var styles = new BaseStyles();
styles.BorderLeftWidth = new Length(5, LengthUnit.Pixel); // Sets the left border width to 5 pixels

// Example of removing the BorderLeftWidth
styles.BorderLeftWidth = null; // Removes the left border width