回复 1楼婧友521的帖子
可以,测试代码:
- 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;
复制代码 |