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

robot_2Generated
code_blocksInput

Description

The TextBackgroundAngle property in the Sandbox.UI.BaseStyles class represents the text-background-angle CSS property. This property allows you to specify the angle of the background applied to text elements, which can be useful for creating visually appealing text effects with angled backgrounds.

Usage

To use the TextBackgroundAngle property, you can set it to a Sandbox.UI.Length value, which represents the angle in degrees. This property is nullable, meaning it can be set to null if you want to remove the angle setting.

Example

// Example of setting the TextBackgroundAngle property
BaseStyles styles = new BaseStyles();
styles.TextBackgroundAngle = new Length(45); // Sets the text background angle to 45 degrees

// To remove the angle setting
styles.TextBackgroundAngle = null;