ASP.NET MVC コントロールヘルプ
FlexSheetPanel クラス
ファイル
wijmo.grid.sheet.js
モジュール
wijmo.grid.sheet
基本クラス
GridPanel
Show
   

基本FlexGridクラスがGridPanelを使用するFlexSheetによって使用されるGridPanelクラスの拡張を定義します。 たとえば、cells プロパティはこのクラスのインスタンスを返します。

コンストラクタ

プロパティ

メソッド

コンストラクタ

constructor

constructor(grid: FlexGrid, cellType: CellType, rows: RowCollection, cols: ColumnCollection, element: HTMLElement): FlexSheetPanel

FlexSheetPanelクラスの新しいインスタンスを初期化します。

パラメーター
戻り値
FlexSheetPanel

プロパティ

cellType

パネルに含まれるセルのタイプを取得します。

継承元
GridPanel
型
CellType

columns

パネルの列コレクションを取得します。

継承元
GridPanel
型
ColumnCollection

grid

パネルを所有するグリッドを取得します。

継承元
GridPanel
型
FlexGrid

height

このパネルに含まれる内容全体の高さを取得します。

継承元
GridPanel
型
number

hostElement

パネルのホスト要素を取得します。

継承元
GridPanel
型
HTMLElement

rows

パネルの行コレクションを取得します。

継承元
GridPanel
型
RowCollection

viewRange

このパネル上の現在表示されているセルの範囲を示すCellRange を取得します。

継承元
GridPanel
型
CellRange

width

パネルに含まれる内容全体の幅を取得します。

継承元
GridPanel
型
number

メソッド

getCellBoundingRect

getCellBoundingRect(r: number, c: number | string, raw?: boolean): Rect

セルの範囲(ビューポート座標単位)を取得します。

戻り値は、セルの位置とサイズ(ビューポート座標単位)を 含むRect オブジェクトです。 このビューポート座標は、 getBoundingClientRect メソッドで使用されている座標と同じです。

パラメーター
  • r: number

    The index of the row that contains the cell.

  • c: number | string

    The index, name, or binding of the column that contains the cell.

  • raw: boolean Optional

    Whether to return the rectangle in raw panel coordinates as opposed to viewport coordinates.

継承元
GridPanel
戻り値
Rect

getCellData

getCellData(r: number, c: any, formatted: boolean): any

パネル内のセルに格納された値を取得します。

パラメーター
  • r: number

    The row index of the cell.

  • c: any

    The index, name, or binding of the column that contains the cell.

  • formatted: boolean

    Whether to format the value for display.

戻り値
any

getCellElement

getCellElement(r: number, c: number | string): HTMLElement

このGridPanel 内のセルを表す要素を取得します。

セルが現在表示されていない場合、このメソッドはnullを返します。

パラメーター
  • r: number

    The index of the row that contains the cell.

  • c: number | string

    The index, name, or binding of the column that contains the cell.

継承元
GridPanel
戻り値
HTMLElement

getSelectedState

getSelectedState(r: number, c: number, rng: CellRange): SelectedState

セルの選択状態を示すSelectedState 値を取得します。

このメソッドをオーバーライドすると、FlexSheet で複数範囲の選択されたヘッダの表示をサポートできます。

パラメーター
  • r: number

    Row index of the cell to inspect.

  • c: number

    Column index of the cell to inspect.

  • rng: CellRange

    CellRange that contains the cell to inspect.

戻り値
SelectedState

setCellData

setCellData(r: number, c: any, value: any, coerce?: boolean, invalidate?: boolean): boolean

パネル内のセルの内容を設定します。

パラメーター
  • r: number

    The index of the row that contains the cell.

  • c: any

    The index, name, or binding of the column that contains the cell.

  • value: any

    The value to store in the cell.

  • coerce: boolean Optional

    A value indicating whether to change the value automatically to match the column's data type.

  • invalidate: boolean Optional

    Whether to invalidate the FlexSheet to show the change.

戻り値
boolean