Spread Windows Forms 6.0 Product Documentation
ForegroundImage Property
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementStyle Class : ForegroundImage Property


Glossary Item Box

Gets or sets the foreground image for the style.

Syntax

Visual Basic (Declaration) 
Public Overridable Property ForegroundImage As Picture
Visual Basic (Usage)Copy Code
Dim instance As ElementStyle
Dim value As Picture
 
instance.ForegroundImage = value
 
value = instance.ForegroundImage
C# 
public virtual Picture ForegroundImage {get; set;}

Property Value

Picture object containing the image

Remarks

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 foreground picture layer. Set the BackgroundImage property to specify the background picture layer. Set the Picture property to specify the picture in the content layer.

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

AlignHorz
Specifies horizontal alignment
AlignVert
Specifies vertical alignment
Image
Specifies the picture to display
Style
Specifies how to display the picture, such as stretched proportionately or tiled
TransparencyColor
Specifies what color in the picture to make transparent

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.