API version 1
- ‐
RW
integer
width¶
列幅を示します。
複数列に設定する場合、全ての列に同じ幅が設定されます。取得する場合は、一番左の列の幅を返します。
初期値は72です。
使用例
CRSダウンロード
Form SpreadColumn_properties {
   x = 0;
   y = 0;
   width = 800;
   height = 600;
   Spread spread1 {
           x = 8;
           y = 8;
           width = 640;
           height = 440;
           maxColumns = 20;
           maxRows = 20;
           #D列を非表示にします
           columns(4).visible = false;
           #A列をロックします
           columns(1).lock = true;
           #B列のユーザーによる列幅変更を禁止します
           columns(2).resizable = false;
           #B列のタイトルを変更します
           columns(2).title = "列変更不可";
           var s = new SpreadStyle;
           s.lockedBgColor = "#FFEEEE";
           s.bgColor = "#EEFFFF";
           var cols = columns("A:E");
           #A列からE列の列スタイルを設定します
           cols.style = s;
           #A列からE列の列幅を100に設定します
           cols.width = 100;
           protect = true;
   }
}