[サンプルコード]
Ver3.0、Ver3.1の場合
Spread Spread1 {
X = 10;
Y = 10;
Width = 360;
Height = 280;
SelectionMode = $ROW;
SpreadRow SpreadRow1[] {
Height = 25;
SpreadColumn SpreadColumn1;
SpreadColumn SpreadColumn2;
SpreadColumn SpreadColumn3;
/*縞模様設定*/
BgColor &= index % 2 ? $RED : $YELLOW;
}
}
Ver4.0の場合
Spread Spread1 {
X = 10;
Y = 10;
Width = 360;
Height = 280;
SelectionMode = $ROW;
SpreadRow SpreadRow1[] {
Height = 25;
SpreadColumn SpreadColumn1;
SpreadColumn SpreadColumn2;
SpreadColumn SpreadColumn3;
/*縞模様設定*/
BgColor &= this.length != null ? $WHITE : (index % 2 ? $RED : $YELLOW);
}
} |