API version 1

- ‐

R

integer

columnsCount

列数を返します。

このプロパティは読み込み専用で変更することはできません。



使用例 CRSダウンロード

Form SpreadRange_properties {
   x = 0;
   y = 0;
   width = 800;
   height = 600;

   Spread spread1 {
           x = 8;
           y = 8;
           width = 640;
           height = 440;
           maxColumns = 20;
           maxRows = 20;

           range("A2:D6").select();
   }

   Button button1 {
           x = 664;
           y = 32;
           width = 112;
           height = 32;
           title = "実行";
           function onTouch(e) {
                   var r = ^.spread1.selection[0];

                   #矩形範囲の左上セルの行番号,列番号を取得
                   print( "選択範囲左上のセル:(", r.row, ",", r.column,")");

                   #矩形範囲の行数を取得
                   print("選択範囲の行数:", r.rowsCount);

                   #矩形範囲の列数を取得
                   print("選択範囲の列数:", r.columnsCount);
           }
   }
}