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


Glossary Item Box

Gets or sets the text string to use in the progress indicator when the text style is set to display custom text.

Syntax

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

Property Value

String containing the custom text

Remarks

This property determines the custom text to use when the TextStyle property is set to Custom.

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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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