Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / BackgroundImage Property
Example


In This Topic
    BackgroundImage Property (SheetView)
    In This Topic
    Gets or sets sheetview background image.
    Syntax
    'Declaration
     
    Public Property BackgroundImage As Image
    'Usage
     
    Dim instance As SheetView
    Dim value As Image
     
    instance.BackgroundImage = value
     
    value = instance.BackgroundImage
    public Image BackgroundImage {get; set;}
    Example
    This example adds an image to the sheet.
    FpSpread1.Sheets[0].BackgroundImage = Image.FromFile("C:\\Program Files (x86)\\Common\\logo.bmp");
    FpSpread1.Sheets[0].DefaultStyle.BackColor = Color.Transparent;
    FpSpread1.Sheets(0).BackgroundImage = Image.FromFile("C:\Program Files (x86)\Common\logo.bmp")
    FpSpread1.Sheets(0).DefaultStyle.BackColor = Color.Transparent
    See Also