Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / ProgressCellType Class / BackgroundImage Property

In This Topic
    BackgroundImage Property (ProgressCellType)
    In This Topic
    Gets or sets the background image for the progress indicator cell.
    Public Property BackgroundImage As Picture
    Dim instance As ProgressCellType
    Dim value As Picture
    instance.BackgroundImage = value
    value = instance.BackgroundImage
    public Picture BackgroundImage {get; set;}

    Property Value

    Picture object containing the image

    This example creates a progress indicator cell and sets several of the available properties.

    FarPoint.Win.Spread.CellType.ProgressCellType progress =new FarPoint.Win.Spread.CellType.ProgressCellType();
            progress.Style = FarPoint.Win.ProgressStyle.Bars;
            progress.FillColor = Color.Coral;
            progress.FillTextColor = Color.DarkGreen;
            progress.Minimum = 0;
            progress.Maximum = 100;
            progress.Orientation = FarPoint.Win.ProgressOrientation.LeftToRight;
            fpSpread1.Sheets[0].Cells[0, 0].CellType = progress;
            fpSpread1.Sheets[0].Cells[0, 0].Value = "50";
    Dim progress As New FarPoint.Win.Spread.CellType.ProgressCellType()
            progress.Style = FarPoint.Win.ProgressStyle.Bars
            progress.FillColor = Color.Coral
            progress.FillTextColor = Color.DarkGreen
            progress.Minimum = 0
            progress.Maximum = 100
            progress.Orientation = FarPoint.Win.ProgressOrientation.LeftToRight
            FpSpread1.Sheets(0).Cells(0, 0).CellType = progress
            FpSpread1.Sheets(0).Cells(0, 0).Value = "50"
    See Also