您好,我测试了没有重现您说的问题,如果单元格本身没有设置过ct,那么序列化后还是null
- fpSpread1.ActiveSheet.Cells[7, 7].ForeColor = Color.Red;
- var oldStyle = fpSpread1.ActiveSheet.GetStyleInfo(7, 7);
- var newStyle = (FarPoint.Win.Spread.StyleInfo)FarPoint.Win.Serializer.LoadObjectXml(typeof(FarPoint.Win.Spread.StyleInfo), FarPoint.Win.Serializer.GetObjectXml(oldStyle, "CopyStyle"), "CopyStyle");
复制代码 |