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;
FarPoint.Win.Spread.CellType.MaskCellType maskcell1 = new FarPoint.Win.Spread.CellType.MaskCellType(maskcell);
fpSpread1.ActiveSheet.Cells[0, 1].CellType = maskcell1;
Dim maskcell As New FarPoint.Win.Spread.CellType.MaskCellType()
maskcell.Mask = "[ ULLLLLLL : ULLLLLLL ]"
maskcell.MaskChar = "X"
fpSpread1.ActiveSheet.Cells(0, 0).CellType = maskcell
Dim maskcell1 As New FarPoint.Win.Spread.CellType.MaskCellType(maskcell)
fpSpread1.ActiveSheet.Cells(0, 1).CellType = maskcell1