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

robot_2Generated
code_blocksInput

Description

The MaskRepeat property in the BaseStyles class represents the mask-repeat CSS property. This property is used to define how a mask image is repeated (tiled) within an element. It can be set to repeat the mask image in various ways, such as repeating it horizontally, vertically, both, or not at all.

Usage

To use the MaskRepeat property, you can assign it a value from the BackgroundRepeat enumeration, which includes options like Repeat, RepeatX, RepeatY, and NoRepeat. This allows you to control the tiling behavior of the mask image applied to an element.

Example

BaseStyles styles = new BaseStyles();
styles.MaskRepeat = BackgroundRepeat.RepeatX; // Repeats the mask image horizontally only.