你通过我示例中的以下代码,可以将设置号的CellType属性可以加载到CellType对话框中- private void button1_Click(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.Design.ExternalDialogs.CellTypeEditor(fpSpread1);
- }
复制代码
如果使用第二种方法就不能将单元格的CellType设置同步到CellType对话框中- private void button2_Click(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.Design.common.LoadResourceManagerForStrings();
- FarPoint.Win.Spread.Design.CellTypeDlgV3 ctd = new FarPoint.Win.Spread.Design.CellTypeDlgV3(fpSpread1);
- ctd.InitValues(this.fpSpread1.ActiveSheet.ActiveCell.CellType, null);
- ctd.ShowDialog();
- }
复制代码
所以,建议你使用第一种方法:- FarPoint.Win.Spread.Design.ExternalDialogs.CellTypeEditor(fpSpread1);
复制代码 |