Spread Windows Forms 12.0 Product Documentation
ShowText Property (ProgressCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ProgressCellType Class : ShowText Property
Gets or sets whether the percent filled string is displayed in the progress indicator.
Syntax
'Declaration
 
Public Property ShowText As Boolean
'Usage
 
Dim instance As ProgressCellType
Dim value As Boolean
 
instance.ShowText = value
 
value = instance.ShowText
public bool ShowText {get; set;}

Property Value

Boolean: true to display the percentage value as text inside the progress indicator; false otherwise
Example

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

Reference

ProgressCellType Class
ProgressCellType Members