Spread Windows Forms 12.0 Product Documentation
BackgroundImage Property (ElementStyle)

FarPoint.Win Assembly > FarPoint.Win Namespace > ElementStyle Class : BackgroundImage Property
Gets or sets the background image for the style.
Public Overridable Property BackgroundImage As Picture
Dim instance As ElementStyle
Dim value As Picture
instance.BackgroundImage = value
value = instance.BackgroundImage
public virtual Picture BackgroundImage {get; set;}

Property Value

Picture object containing the image

The style can specify layers of pictures. When displayed, the first layer consists of a foreground picture, next comes the content, such as text and a picture, then comes the background picture, and finally, the background of the object, which displays the background color.

Set this property to specify the background picture layer. Set the ForegroundImage property to specify the foreground picture layer. Set the Picture property to specify the picture in the content layer.

Set other features for the background picture using the following Picture class properties:

Specifies horizontal alignment
Specifies vertical alignment
Specifies the picture to display
Specifies how to display the picture, such as stretched proportionally or tiled
Specifies what color in the picture to make transparent
See Also


ElementStyle Class
ElementStyle Members
ForegroundImage Property
Picture Property
AlignHorz Property
AlignVert Property
Image Property
Style Property
TransparencyColor Property