FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > RegExpCellType Class : ValidationExpression Property |
'Declaration Public Property ValidationExpression As String
'Usage Dim instance As RegExpCellType Dim value As String instance.ValidationExpression = value value = instance.ValidationExpression
public string ValidationExpression {get; set;}
FarPoint.Web.Spread.RegExpCellType re = new FarPoint.Web.Spread.RegExpCellType(); re.ErrorMessage = "SSN ( ex, 123-45-6789 )"; re.ValidationExpression = "^\\d{3}-\\d{2}-\\d{4}$"; FpSpread1.ActiveSheetView.Cells[0, 0].CellType = re;
Dim re As New FarPoint.Web.Spread.RegExpCellType() re.ErrorMessage = "SSN ( ex, 123-45-6789 )" re.ValidationExpression = "^\d{3}-\d{2}-\d{4}$" FpSpread1.ActiveSheetView.Cells(0, 0).CellType = re
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional