回复 4楼jiangtao66的帖子
spread 撤销功能在下一个 Spread Designer 源码中会发布。
格式刷功能可以通过 StyleInfo Copy From 方法实现,先获取 StyleInfo:
- FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
- si.BackColor = Color.Yellow;
- si.Font = new Font("Comic Sans Serif", 12);
- FarPoint.Win.Spread.NamedStyle parent = new FarPoint.Win.Spread.NamedStyle("StyleHeaders", "HeaderDefault");
- parent.CopyFrom(si);
- fpSpread1.NamedStyles.Add(parent);
- fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle = parent;
- fpSpread1.ActiveSheet.RowHeader.DefaultStyle = parent;
复制代码 |