在遗留代码()中,可以为单元格分配自定义颜色:
contractCell.Interior.Color = ColorTranslator.ToOle(Color.FromArgb(202, 134, 250));
使用Aspose细胞,我想找出相应的方法。此代码:
styleContractRow2.ForegroundColor = ColorTranslator.ToOle(Color.FromArgb(202, 134, 250));
styleContractRow2.Pattern = BackgroundType.Solid;
...does没有编译,告诉我,“不能隐式地将'int‘类型转换为'System.Drawing.Color'”
那么,如何在Aspose单元格中指定自定义颜色呢?
发布于 2017-01-31 14:12:48
请检查您的Aspose.Cells论坛帖子中的回复和示例代码。
备注:我在Aspose做开发人员布道员
发布于 2017-01-30 19:00:17
翻译似乎是不必要的;这就编译了:
styleContractRow2.ForegroundColor = Color.FromArgb(202, 134, 250);
https://stackoverflow.com/questions/41943375
复制相似问题