【发布时间】:2020-06-10 16:10:18
【问题描述】:
当单元格的值超过某个阈值时,我正在尝试使用条件格式添加鲑鱼背景颜色。这是我的代码:
Dim condition As IFormatCondition = thisRow(0, 6).FormatConditions.Add(FormatConditionType.CellValue, FormatConditionOperator.GreaterEqual, 0.035, Nothing)
condition.Interior.Color = Drawing.Color.FromArgb(230, 184, 183)
条件已正确创建,但无论出于何种原因,它没有将背景颜色设置为鲑鱼,而是使用 rgb(192, 192, 192)。
我做错了什么?
【问题讨论】:
-
你的三文鱼好像变质了。
-
@djv - gph.is/15xZ8qn
标签: excel vb.net spreadsheetgear