Description
The BorderImageRepeat
property in the Sandbox.UI.BaseStyles
class represents the border-image-repeat
CSS property. This property specifies how the border image should be repeated (tiled) to fill the border area. It can be set to values such as stretch
, repeat
, round
, or space
, which determine the tiling behavior of the border image.
Usage
To use the BorderImageRepeat
property, you can set it to a value from the Sandbox.UI.BorderImageRepeat
enumeration. This property is nullable, meaning it can be set to null
if you want to remove any specific repeat behavior.
Example
// Example of setting the BorderImageRepeat property
var styles = new BaseStyles();
styles.BorderImageRepeat = BorderImageRepeat.Repeat; // Sets the border image to repeat
// To remove the repeat setting
styles.BorderImageRepeat = null;