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

Sheet オブジェクトのコレクションを定義します。

コンストラクタ

プロパティ

メソッド

イベント

コンストラクタ

constructor

constructor(owner?: FlexSheet, grid?: FlexGrid, sheetName?: string, rows?: number, cols?: number): Sheet

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

パラメーター
継承元
Sheet
戻り値
Sheet

プロパティ

columnCount

シート内の列数を取得または設定します。

継承元
Sheet
型
number

filterSetting

このシートのフィルタ設定を取得または設定します。

継承元
Sheet
型
IFilterSetting

grid

シートデータを格納するために使用される、関連付けられたFlexGrid コントロールを取得します。

継承元
Sheet
型
FlexGrid

itemsSource

シートのFlexGrid インスタンスの配列またはICollectionViewを取得または設定します。

継承元
Sheet
型
any

name

シートの名前を取得または設定します。

継承元
Sheet
型
string

rowCount

シート内の行数を取得または設定します。

継承元
Sheet
型
number

selectedIndex

現在選択されているシートのインデックスを取得または設定します。

型
number

selectionRanges

選択項目の配列を取得します。

継承元
Sheet
型
ObservableArray

tables

このシート内のTable オブジェクトのコレクションを取得します。 テーブルのコレクションを介してこのシートにTableを挿入または削除することができます。

継承元
Sheet
型
ObservableArray

visible

シートの表示/非表示を取得または設定します。

継承元
Sheet
型
boolean

メソッド

addTableFromArray

addTableFromArray(row: number, column: number, array: any[], properties?: string[], tableName?: string, tableStyle?: TableStyle, options?: ITableOptions, shift?: boolean): Table

オブジェクト配列からテーブルを追加します。

パラメーター
  • row: number

    The row position of the table.

  • column: number

    The column position of the table.

  • array: any[]

    The object array load to the table.

  • properties: string[] Optional

    It allows to retrieve only a subset of columns from the object of the array. If it is omitted, the table will load all the keys of the object of the array.

  • tableName: string Optional

    The name of the table.

  • tableStyle: TableStyle Optional

    The table style is applied to the table.

  • options: ITableOptions Optional

    The options ITableOptions of the table.

  • shift: boolean Optional

    Indicates whether cells beneath the table should be shifted or not. If not specified cells beneath will be shifted.

継承元
Sheet
戻り値
Table

clear

clear(): void

SheetCollectionをクリアします。

戻り値
void

dispose

dispose(): void

シートのインスタンスを破棄します。

継承元
Sheet
戻り値
void

findTable

findTable(rowIndex: number, columnIndex: number): Table

セルの位置を介してテーブルを検索します。

パラメーター
  • rowIndex: number

    the row index of the specified cell.

  • columnIndex: number

    the column index of the specified cell.

継承元
Sheet
戻り値
Table

getCellStyle

getCellStyle(rowIndex: number, columnIndex: number): ICellStyle

指定したセルのスタイルを取得します。

パラメーター
  • rowIndex: number

    the row index of the specified cell.

  • columnIndex: number

    the column index of the specified cell.

継承元
Sheet
戻り値
ICellStyle

getValidSheetName

getValidSheetName(currentSheet: T): string

シートの有効な名前を取得します。

パラメーター
  • currentSheet: T

    The Sheet need get the valid name.

戻り値
string

hide

hide(pos: number): boolean

指定した位置にあるシートを非表示にします。

パラメーター
  • pos: number

    The position of the sheet to hide.

戻り値
boolean

isValidSheetName

isValidSheetName(sheet: T): boolean

シート名が有効かどうかをチェックします。

パラメーター
  • sheet: T

    The Sheet for which the name needs to check.

戻り値
boolean

onNameChanged

onNameChanged(e: PropertyChangedEventArgs): void

nameChanged イベントを発生させます。

パラメーター
継承元
Sheet
戻り値
void

onSelectedSheetChanged

onSelectedSheetChanged(e: PropertyChangedEventArgs): void

currentChangedイベントを発生させます。

パラメーター
戻り値
void

onSheetCleared

onSheetCleared(): void

sheetClearedイベントを発生させます。

戻り値
void

onSheetNameChanged

onSheetNameChanged(e: NotifyCollectionChangedEventArgs): void

sheetNameChangedイベントを発生させます。

パラメーター
戻り値
void

onSheetVisibleChanged

onSheetVisibleChanged(e: NotifyCollectionChangedEventArgs): void

sheetVisibleChangedイベントを発生させます。

パラメーター
戻り値
void

onVisibleChanged

onVisibleChanged(e: EventArgs): void

visibleChanged イベントを発生させます。

パラメーター
継承元
Sheet
戻り値
void

push

push(...item: T[]): number

配列の末尾に1つ以上の項目を追加します。基本クラスObservableArray のpushメソッドをオーバーライドします。

パラメーター
  • ...item: T[]

    One or more items to add to the array.

戻り値
number

selectFirst

selectFirst(): boolean

FlexSheet コントロールで最初のシートを選択します。

戻り値
boolean

selectLast

selectLast(): boolean

オーナーである FlexSheet コントロールで最後のシートを選択します。

戻り値
boolean

selectNext

selectNext(): boolean

オーナーである FlexSheet コントロールで最後のシートを選択します。

戻り値
boolean

selectPrevious

selectPrevious(): boolean

オーナーである FlexSheet コントロールで最後のシートを選択します。

戻り値
boolean

show

show(pos: number): boolean

指定した位置にあるSheet の非表示を解除して選択します。

パラメーター
  • pos: number

    The position of the sheet to show.

戻り値
boolean

splice

splice(index: number, count: number, ...item: T[]): any[]

項目を配列から削除および/または追加します。基本クラスObservableArray のspliceメソッドをオーバーライドします。

パラメーター
  • index: number

    Position where items will be added or removed.

  • count: number

    Number of items to remove from the array.

  • ...item: T[]

    Items to add to the array.

戻り値
any[]

イベント

nameChanged

シート名が変更された後に発生します。

継承元
Sheet
引数
PropertyChangedEventArgs

selectedSheetChanged

selectedIndexプロパティが変更されたときに発生します。

引数
PropertyChangedEventArgs

sheetCleared

SheetCollection がクリアされたときに発生します。

引数
EventArgs

sheetNameChanged

コレクション内のシートの名前が変更された後に発生します。

引数
NotifyCollectionChangedEventArgs

sheetVisibleChanged

コレクション内のシートの表示/非表示が変更された後に発生します。

引数
NotifyCollectionChangedEventArgs

visibleChanged

シートの表示/非表示が変更された後に発生します。

継承元
Sheet
引数
EventArgs