FarPoint.Win.Spread.CellType.MaskCellType maskcell = new FarPoint.Win.Spread.CellType.MaskCellType(); maskcell.Mask = "[ ULLLLLLL : ULLLLLLL ]"; maskcell.MaskChar = Convert.ToChar("X"); fpSpread1.ActiveSheet.Cells[0, 0].CellType = maskcell;
Dim maskcell As New FarPoint.Win.Spread.CellType.MaskCellType() maskcell.Mask = "[ ULLLLLLL : ULLLLLLL ]" maskcell.MaskChar = "X" FpSpread1.ActiveSheet.Cells(0, 0).CellType = maskcell