Spread Windows Forms 7.0 Product Documentation
TextStyle Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ProgressCellType Class : TextStyle Property


Glossary Item Box

Gets or sets how the text portion of the progress indicator is displayed.

Syntax

Visual Basic (Declaration) 
Public Property TextStyle As ProgressTextStyle
Visual Basic (Usage)Copy Code
Dim instance As ProgressCellType
Dim value As ProgressTextStyle
 
instance.TextStyle = value
 
value = instance.TextStyle
C# 
public ProgressTextStyle TextStyle {get; set;}

Property Value

ProgressTextStyle setting that determines the type of text

Remarks

This property determines what type of text is displayed in the progress indicator, whether numerical or text.

Example

This example sets the text and text style for the cell.
C#Copy Code
FarPoint.Win.Spread.CellType.ProgressCellType progress = new FarPoint.Win.Spread.CellType.ProgressCellType();
progress.TextStyle =FarPoint.Win.ProgressTextStyle.PercentRemaining;
progress.Text ="This is the percent remaining.";
fpSpread1.Sheets[0].Cells[0, 0].CellType = progress;
Visual BasicCopy Code
Dim progress As New FarPoint.Win.Spread.CellType.ProgressCellType
progress.TextStyle = FarPoint.Win.ProgressTextStyle.PercentRemaining
progress.Text ="This is the percent remaining."
FpSpread1.Sheets(0).Cells(0, 0).CellType = progress

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.