'Declaration Public Overridable Property ForegroundImage As Picture
'Usage Dim instance As ElementWindowless Dim value As Picture instance.ForegroundImage = value value = instance.ForegroundImage
public virtual Picture ForegroundImage {get; set;}
'Declaration Public Overridable Property ForegroundImage As Picture
'Usage Dim instance As ElementWindowless Dim value As Picture instance.ForegroundImage = value value = instance.ForegroundImage
public virtual Picture ForegroundImage {get; set;}
Elements can display pictures in layers. The first layer consists of a foreground picture, next comes the content of the element, such as text and a picture, then comes the background picture, and finally, the background of the element, which displays the background color.
Set this property to specify the foreground picture layer.
This property is available at run time only.
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:
If the application changes the foreground picture, the ForegroundImageChanged event occurs.
control.ForegroundImage = new FarPoint.Win.Picture(Image.FromFile("d:\overlay.bmp")); control.MarginTop = 3; control.MarginBottom = 3;
control.ForegroundImage = New FarPoint.Win.Picture(Image.FromFile("d:\overlay.bmp")) control.MarginTop = 3 control.MarginBottom = 3