Spread Windows Forms 9.0 Product Documentation
ProgressCellType Constructor(ProgressCellType)
Example 


Specified progress indicator cell type from which to copy
Creates a new copy from the specified cell type ("Copy constructor").
Syntax
'Declaration
 
Public Function New( _
   ByVal g As ProgressCellType _
)
'Usage
 
Dim g As ProgressCellType
 
Dim instance As New ProgressCellType(g)
public ProgressCellType( 
   ProgressCellType g
)

Parameters

g
Specified progress indicator cell type from which to copy
Example
This example creates a progress 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";
FarPoint.Win.Spread.CellType.ProgressCellType progress1 = new FarPoint.Win.Spread.CellType.ProgressCellType(progress);
fpSpread1.Sheets[0].Cells[0, 1].CellType = progress1;
fpSpread1.Sheets[0].Cells[0, 1].Value = "50";
fpSpread1.ActiveSheet.Cells[0, 0].VisualStyles = FarPoint.Win.VisualStyles.Off;
fpSpread1.ActiveSheet.Cells[0, 1].VisualStyles = FarPoint.Win.VisualStyles.Off;
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"
Dim progress1 As New FarPoint.Win.Spread.CellType.ProgressCellType(progress)
FpSpread1.Sheets(0).Cells(0, 1).CellType = progress1
FpSpread1.Sheets(0).Cells(0, 1).Value = "50"
FpSpread1.ActiveSheet.Cells(0, 0).VisualStyles = FarPoint.Win.VisualStyles.Off
FpSpread1.ActiveSheet.Cells(0, 1).VisualStyles = FarPoint.Win.VisualStyles.Off
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ProgressCellType Class
ProgressCellType Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.