Description
The BackgroundAngle
property in the Sandbox.UI.BaseStyles
class represents the background-angle
CSS property. This property is used to define the angle of a background gradient or image, allowing for precise control over the direction of the background's visual elements.
Usage
To use the BackgroundAngle
property, assign it a value of type Sandbox.UI.Length
. This value can be specified in degrees, radians, or other units supported by the Length
type. The property is nullable, meaning it can be set to null
if no specific angle is desired.
Example
BaseStyles styles = new BaseStyles();
styles.BackgroundAngle = new Length(45, LengthUnit.Degrees);