Gets or sets the regular expression string.
Syntax
Visual Basic (Declaration) | |
---|
Public Property RegularExpression As String |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As RegularExpressionCellType
Dim value As String
instance.RegularExpression = value
value = instance.RegularExpression |
C# | |
---|
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.
C# | Copy Code |
---|
FarPoint.Win.Spread.CellType.RegularExpressionCellType reg = new FarPoint.Win.Spread.CellType.RegularExpressionCellType();
reg.RegularExpression = "^\\d{9}$";
fpSpread1.Sheets[0].Cells[0, 0].CellType = reg; |
Visual Basic | Copy Code |
---|
Dim reg As New FarPoint.Win.Spread.CellType.RegularExpressionCellType()
reg.RegularExpression = "^\d{9}$"
FpSpread1.Sheets(0).Cells(0, 0).CellType = reg |
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