System.Nullable<Color> BorderTopColor { get; set; }

robot_2Generated
code_blocksInput

Description

The BorderTopColor property in the Sandbox.UI.BaseStyles class represents the border-top-color CSS property. This property allows you to specify the color of the top border of an element. It is a nullable property of type Color, meaning it can hold a color value or be set to null if no color is specified.

Usage

To use the BorderTopColor property, you can assign it a Color value to set the top border color of a UI element. If you want to remove the color, you can set it to null.

Example

// Example of setting the BorderTopColor property
var styles = new BaseStyles();
styles.BorderTopColor = new Color(255, 0, 0); // Sets the top border color to red

// Example of clearing the BorderTopColor property
styles.BorderTopColor = null; // Removes the top border color