使用VBA对指定的单元格赋值并填充颜色 ====================================================== 代码区域 ====================================================== Sub row应用() For Each rw In Rows("1:13") = Then rw.Interior.ColorIndex = rw.Value = End If Next End Sub 效果如下图:
/** * change a part of string color. * * @param string * whole string. * @param subString * the sub string need modify color. * @param color * the the color you want the sub string display. can get like * {@link Context#getResources()}.getColor(R.col
因为研究CodeCombat上的最后一题,自己尝试分解题目,然后想到需要画网格,还有最优化的方法 源代码如下 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace D