Spread Windows Forms 11.0 Product Documentation
RegularExpression Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > RegularExpressionCellType Class : RegularExpression Property
Gets or sets the regular expression string.
Syntax
'Declaration
 
Public Property RegularExpression As String
'Usage
 
Dim instance As RegularExpressionCellType
Dim value As String
 
instance.RegularExpression = value
 
value = instance.RegularExpression
public string RegularExpression {get; set;}

Property Value

String containing the expression
Example
This example creates a regular expression cell. A valid value for the cell would be 112400827.
FarPoint.Win.Spread.CellType.RegularExpressionCellType reg = new FarPoint.Win.Spread.CellType.RegularExpressionCellType();
        reg.RegularExpression = "^\\d{9}$";
        fpSpread1.Sheets[0].Cells[0, 0].CellType = reg;
Dim reg As New FarPoint.Win.Spread.CellType.RegularExpressionCellType()
        reg.RegularExpression = "^\d{9}$"
        FpSpread1.Sheets(0).Cells(0, 0).CellType = reg
See Also

Reference

RegularExpressionCellType Class
RegularExpressionCellType Members