Back to Devexpress

BackgroundImage.Repeat Property

aspnet-devexpress-dot-web-dot-backgroundimage-3a49c354.md

latest2.3 KB
Original Source

BackgroundImage.Repeat Property

Gets or sets a value that specifies how the background image fills the available space.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(BackgroundImageRepeat.Repeat)]
public BackgroundImageRepeat Repeat { get; set; }
vb
<DefaultValue(BackgroundImageRepeat.Repeat)>
Public Property Repeat As BackgroundImageRepeat

Property Value

TypeDefaultDescription
BackgroundImageRepeatRepeat

One of the BackgroundImageRepeat enumeration values.

|

Available values:

NameDescription
Repeat

Repeats the image horizontally and vertically in the background.

| | NoRepeat |

Displays the image only once and does not repeat it. The image’s position can be specified via the BackgroundImage.HorizontalPosition and BackgroundImage.VerticalPosition properties.

| | RepeatX |

Repeats the image horizontally in the background. The vertical position of the images can be specified via the BackgroundImage.VerticalPosition property.

| | RepeatY |

Repeats the image vertically in the background. The horizontal position of the images can be specified via the BackgroundImage.HorizontalPosition property.

|

Remarks

Use the Repeat property to control how the background image set via the BackgroundImage.ImageUrl property fills the available space of the corresponding object.

See Also

ImageUrl

BackgroundImage Class

BackgroundImage Members

DevExpress.Web Namespace