Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / ForegroundImage Property
Example


In This Topic
    ForegroundImage Property (ElementWindowless)
    In This Topic
    Gets or sets the foreground image for the element.
    Syntax
    '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;}
    Example
    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
    See Also