// initialize table with sample data
object T →000001= new Table(10);
FOR(C, 0, 9) {
FOR(R, 0, 5) {
T[R][C].Value →000002= C+10*R;
}
}
// set back color of row, column and cell
T[1].BackColor →000008= Color.Red;
T.Columns[2].BackColor →000009= Color.LightBlue;
T[3][3].BackColor →000010= Color.Green;
// set back brush of row, column and cell
T[4].BackBrush →000014= new SolidBrush(Color.Yellow);
T.Columns[7].BackBrush →000012= new HatchBrush(HatchStyle.DiagonalCross, Color.White, Color.Aqua);
T[3][6].BackBrush →000016= new HatchBrush(HatchStyle.DottedDiamond, Color.Navy, Color.Bisque);
// draw table
→000003T.Draw();
Layout 0
Layout 1
Layout 2
Layout 3
Layout 4
Layout 5
http://sciadesignforms.com/
-
C+10*R