var instance = new GC.Spread.Sheets.CellState.CellStateManager(sheet); var value; // Type: any value = instance.add(range, state, style, sheetArea);
Parameters
- range
- {GC.Spread.Sheets.Range} The scope range which will apply style of cellState.
- state
- {GC.Spread.Sheets.CellStatesType} Which state will use style.
- style
- {GC.Spread.Sheets.Style} Which style when the state is matched.
- sheetArea
- {GC.Spread.Sheets.SheetArea} The sheet area. If this parameter is not provided, it defaults to viewport.