Suppose on the front of the Matrix code set as follows: oColumn = oMatrix.Columns.Item (3); oColumn.ForeColor = greenForeColor; setting.SetRowFontColor (3, rowForeColor); int redBackColor = Color.Red.R | (Color.Red.G <<8) | (Color.Red.B <<16); setting.SetCellFontColor (3, 3, redBackColor); int color = setting.GetCellFontColor (3, 3); Will produce the following effects:
Explain the code below: In the new configuration previously developed in 8.8 SP1, Matrix's interface settings only for the column's.This version focuses on the development for us in cell configuration, but to the flexibility of the interface we have developed in line for the above configuration. So lines of code oColumn.ForeColor = greenForeColor was previously the old function is dyed green to the third column fonts.Lines of code setting.SetRowFontColor (3, rowForeColor) is a new feature, is the third line to the dye RGB (100, 100, 200) color.setting.SetCellFontColor (3, 3, redBackColor) is the third column to the third line of red dye cell.Note that the cell line of API and API, API has a column intersection, our design philosophy is the more effective the more the interface after the transfer, an example, let's use the API to set the third column as green, and then c all the API to set the third line behavior RGB (100,100,200) color, then the API is because the line after the transfer, so the third line Limian the cell on the third column from the front of the green to RGB (100,100,200), Finally, we call the cell API, so this cell has been dyed red.If we reverse the order of these API calls, the interface is one of the colors will change.The last line of code setting.GetCellFontColor (3, 3) is to obtain the cell font color, return an integer value, used later in the cell also has a corresponding set value API cell value API, we will no longer be a a repeat. Background color: oColumn.BackColor = 34434; int redBackColor = Color.Red.R | (Color.Red.G <<
| (Color.Red.B <<16);