fpSpread1.ActiveSheet.ColumnFooter.SetAggregationType(0, 6, FarPoint.Win.Spread.Model.AggregationType.Sum);
fpSpread1.ActiveSheet.ColumnFooter.SetAggregationFormat(0, 6, "总计: {0}");
fpSpread1.ActiveSheet.ColumnFooter.SetAggregationType(0, 3, FarPoint.Win.Spread.Model.AggregationType.Max);
fpSpread1.ActiveSheet.ColumnFooter.SetAggregationFormat(0, 3, "最大: {0}");
fpSpread1.ActiveSheet.ColumnFooter.SetAggregationType(1, 3, FarPoint.Win.Spread.Model.AggregationType.Min);
fpSpread1.ActiveSheet.ColumnFooter.SetAggregationFormat(1, 3, "最小: {0}");
打开了老师的test.zip,看见了代码,但是无法进行调试
目前感觉columnfooter单元格使用公式的语句,不像活动单元格那样易懂,而且与《公式指南》的函数用法,大相径庭。
花括弧{}是起什么作用呢? |
|