System.Nullable<BackgroundRepeat> BackgroundRepeat { get; set; }

robot_2Generated
code_blocksInput

Description

The BackgroundRepeat property in the BaseStyles class represents the background-repeat CSS property. This property determines how background images are repeated within an element. It can be set to values such as repeat, repeat-x, repeat-y, or no-repeat, among others, to control the tiling of the background image.

Usage

To use the BackgroundRepeat property, you can set it to a value from the Sandbox.UI.BackgroundRepeat enumeration. This property is nullable, meaning it can also be set to null if you want to remove any specific repeat behavior.

Example

BaseStyles styles = new BaseStyles();
styles.BackgroundRepeat = BackgroundRepeat.NoRepeat;