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


In This Topic
    BackgroundImageLayout Property (SheetView)
    In This Topic
    Gets or sets sheetview background image layout.
    Syntax
    'Declaration
     
    Public Property BackgroundImageLayout As SheetView.ImageLayout
    'Usage
     
    Dim instance As SheetView
    Dim value As SheetView.ImageLayout
     
    instance.BackgroundImageLayout = value
     
    value = instance.BackgroundImageLayout
    public SheetView.ImageLayout BackgroundImageLayout {get; set;}
    Example
    This example displays a background image.
    fpSpread1.Sheets[0].BackgroundImage = Image.FromFile("C:\\Program Files (x86)\\GrapeCity\\image.png");
    fpSpread1.Sheets[0].BackgroundImageLayout = FarPoint.Win.Spread.SheetView.ImageLayout.Tile;
    fpSpread1.ActiveSheet.DefaultStyle.BackColor = Color.Transparent;
    fpSpread1.Sheets(0).BackgroundImage = Image.FromFile("C:\Program Files (x86)\GrapeCity\image.png")
    fpSpread1.Sheets(0).BackgroundImageLayout = FarPoint.Win.Spread.SheetView.ImageLayout.Tile
    fpSpread1.ActiveSheet.DefaultStyle.BackColor = Color.Transparent
    See Also