Spread Windows Forms 11.0 Product Documentation
ProgressCellType Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ProgressCellType Class > ProgressCellType Constructor : ProgressCellType Constructor()
Creates a new progress indicator cell with default settings.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New ProgressCellType()
public ProgressCellType()
Example
This example creates a cell of this type, sets properties of this cell type, and assigns this cell type to a cell.
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

Reference

ProgressCellType Class
ProgressCellType Members
Overload List