回复 1楼czpi的帖子
你好,
通过以下代码我这边是可以取到的,请测试:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType();
- dt.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.UserDefined;
- dt.UserDefinedFormat = "yy/MM";
- fpSpread1.ActiveSheet.Cells[0, 0].CellType = dt;
- fpSpread1.Leave += fpSpread1_Leave;
- }
- void fpSpread1_Leave(object sender, EventArgs e)
- {
- MessageBox.Show(fpSpread1.ActiveSheet.Cells[0, 0].Text);
- }
复制代码
谢谢 |