SpreadJS Documentation
Sheet type
Represents a sheet.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
function Sheet;
Inheritance Hierarchy

Object
   GcSpread.Sheets.Sheet

Constructors
 NameDescription
public ConstructorSheet ConstructorRepresents a sheet.  
Top
Fields
 NameDescription
public FieldautoGenerateColumnsIndicates whether to generate columns automatically while binding data context.  
public FieldcolRangeGroupIndicates the column range group.  
public FielddefaultsIndicates the default row height and column width of the sheet.  
public FieldkeyMapIndicates shortcut keys for default behaviours, such as navigating left after pressing the left arrow key.  
public FieldrowRangeGroupIndicates the row range group.  
Top
Methods
 NameDescription
public MethodaddColumnsAdds the column or columns to the data model at the specified index.  
public MethodaddCustomFunctionAdds the specified user-defined custom function to the collection.  
public MethodaddCustomFunctionDescriptionAdds a custom function description.  
public MethodaddCustomNameAdds a custom name for the specified area.  
public MethodaddFloatingObjectAdds a custom floating object to the sheet.  
public MethodaddKeyMapAdds the shortcut key for the specified action to the sheet.  
public MethodaddNamedStyleAdds a style to the sheet named styles collection.  
public MethodaddPictureAdds a picture to the sheet.  
public MethodaddRowsAdds rows in this sheet.  
public MethodaddSelectionAdds a cell or cells to the selection.  
public MethodaddSlicerAdds a slicer to the sheet.  
public MethodaddSpanAdds a span of cells to this sheet in the specified sheet area.  
public MethodaddTableAdds a range table with a specified size to the sheet.  
public MethodaddTableByDataSourceAdds a range table with a specified data source to the sheet.  
public MethodallowCellOverflowGets or sets a value that indicates whether data can overflow into adjacent empty cells.  
public MethodallowEditorReservedLocationsGets or sets whether cell editor reserved mouse locations are allowed.  
public MethodallowUndoGets or sets a value that indicates whether to allow undo actions.  
public MethodautoFitColumnAutomatically fits the viewport column.  
public MethodautoFitRowAutomatically fits the viewport row.  
public MethodbindBinds an event to the sheet.  
public MethodbindColumnBinds the column using the specified data field.  
public MethodbindColumnsBinds the columns using the specified data fields.  
public MethodclearClears the specified area.  
public MethodclearCustomFunctionDescriptionsClears all custom function descriptions.  
public MethodclearCustomFunctionsRemoves all user-defined custom functions (FunctionInfo object) on this sheet.  
public MethodclearCustomNamesClears the custom name collection.  
public MethodclearPendingChangesClears the dirty, insert, and delete status from the current sheet.  
public MethodclearSelectionClears the selection.  
public MethodclipBoardOptionsGets or sets the clipboard options.  
public MethodcopyToCopies data from one range to another.  
public MethodcurrentThemeGets or sets the current theme for the sheet.  
public MethoddeleteColumnsDeletes the columns in this sheet at the specified index.  
public MethoddeleteRowsDeletes the rows in this sheet at the specified index.  
public MethoddoCommandPerforms an action and adds it to the undo list if the action can be undone.  
public MethodeditorStatusReturns the editor's status.  
public MethodendEditStops editing the active cell.  
public MethodfillAutoFills the specified range automatically. When the value is a string, the value is copied to other cells. When the value is a number, the new value is generated by the TREND formula.  
public MethodfillAutobyDirectionFills the specified range in the specified direction.  
public MethodfillDateFills the specified range when the source value type is date. The next value is generated by adding the step value to the current value. The step value is affected by the fill date unit.  
public MethodfillGrowthFills the specified range growth trend when the source value type is number. The next value is generated by the step and stop values. The next value is computed by multiplying the step value with the current cell.  
public MethodfillLinearFills the specified range linear trend when the source value type is number. The next value is generated by the step and stop values. The next value is computed by adding the step value to the current cell value.  
public MethodfindFloatingObjectFinds the custom floating object with the specified name.  
public MethodfindPictureFinds the picture with specified name.  
public MethodfindTableGets the table of the specified cell.  
public MethodfindTableByNameGets the table with a specified name.  
public MethodfromJSONLoads the object state from the specified JSON string.  
public MethodfrozenlineColorGets or sets a color string used to represent the frozen line color, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on.  
public MethodgetActiveColumnIndexGets the active column index for this sheet.  
public MethodgetActiveRowIndexGets the active row index for this sheet.  
public MethodgetActualStyleGets the actual style information for a specified cell in the specified sheet area.  
public MethodgetArrayGets an object array from a specified range of cells.  
public MethodgetBindingPathGets the binding path of cell-level binding from the specified cell in the specified sheet area.  
public MethodgetCalcServiceGets the calculation service of the Spread component.  
public MethodgetCellGets the specified cell in the specified sheet area.  
public MethodgetCellRectGets the rectangle of the cell.  
public MethodgetCellsGets a range of cells in the specified sheet area.  
public MethodgetCellTypeGets the cell type.  
public MethodgetColumnGets the specified column in the specified sheet area.  
public MethodgetColumnCountGets the column count in the specified sheet area.  
public MethodgetColumnHeaderAutoTextGets a value that indicates whether the column header displays letters or numbers or is blank.  
public MethodgetColumnHeaderAutoTextIndexGets which column header row displays the automatic text when there are multiple column header rows.  
public MethodgetColumnHeaderVisibleGets a value that indicates whether the column header is visible.  
public MethodgetColumnPageBreakGets whether a forced page break is inserted before the specified column on this sheet when printing.  
public MethodgetColumnResizableGets a value that indicates whether the user can resize a specified column in the specified sheet area.  
public MethodgetColumnsGets a range of columns in the specified sheet area.  
public MethodgetColumnVisibleGets whether a column in the specified sheet area is displayed.  
public MethodgetColumnWidthGets the width in pixels for the specified column in the specified sheet area.  
public MethodgetCommentGets the comment for the specified cell.  
public MethodgetCommentsGets all the comments on the sheet.  
public MethodgetConditionalFormatsGets the conditional format for the sheet.  
public MethodgetCsvGets delimited text from a range.  
public MethodgetCustomFunctionGets the specified user-defined custom function.  
public MethodgetCustomFunctionDescriptionGets a custom function description.  
public MethodgetCustomNameFinds the specified custom name.  
public MethodgetCustomNamesGets information for all custom names.  
public MethodgetDataColumnNameGets the column name at the specified position.  
public MethodgetDataItemGets the data item.  
public MethodgetDataSourceGets the data source that populates the sheet.  
public MethodgetDataValidatorGets the cell data validator.  
public MethodgetDefaultStyleGets the default style information for the sheet.  
public MethodgetDeleteRowsGets the deleted row collection.  
public MethodgetDirtyCellsGets the dirty cell collection.  
public MethodgetDirtyRowsGets the dirty row collection.  
public MethodgetFloatingObjectsGets the custom floating objects.  
public MethodgetFloatingObjectZIndexGets the z-index of the floating object.  
public MethodgetFormatterGets the cell formatter.  
public MethodgetFormulaGets the formula in the specified cell in this sheet.  
public MethodgetFormulaInformationGets the formula in the specified cell in this sheet.  
public MethodgetFrozenColumnCountGets the number of frozen columns.  
public MethodgetFrozenRowCountGets the number of frozen rows.  
public MethodgetFrozenTrailingColumnCountGets the number of trailing frozen columns.  
public MethodgetFrozenTrailingRowCountGets the number of trailing frozen rows.  
public MethodgetGridlineOptionsGets the grid line's options.  
public MethodgetInsertRowsGets the inserted row collection.  
public MethodgetIsProtectedGets a value that indicates whether cells on this sheet that are marked as protected cannot be edited.  
public MethodgetNameGets the name of this sheet.  
public MethodgetNamedStyleGets a style from the sheet named styles collection which has the specified name.  
public MethodgetNamedStylesGet named styles from the sheet.  
public MethodgetParentGets the parent Spread object of the current sheet.  
public MethodgetPicturesGets the pictures.  
public MethodgetRowGets the specified row in the specified sheet area.  
public MethodgetRowCountGets the row count in the specified sheet area.  
public MethodgetRowHeaderAutoTextGets a value that indicates whether the row header displays letters or numbers or is blank.  
public MethodgetRowHeaderAutoTextIndexGets which row header column displays the automatic text when there are multiple row header columns.  
public MethodgetRowHeaderVisibleGets a value that indicates whether the row header is visible.  
public MethodgetRowHeightGets the height in pixels for the specified row in the specified sheet area.  
public MethodgetRowPageBreakGets whether a forced page break is inserted before the specified row on this sheet when printing.  
public MethodgetRowResizableGets a value that indicates whether users can resize the specified row in the specified sheet area.  
public MethodgetRowsGets a range of rows in the specified sheet area.  
public MethodgetRowVisibleGets whether the control displays the specified row.  
public MethodgetSelectionsGets the selections in the current sheet.  
public MethodgetSlicerGets a slicer in the sheet by the name.  
public MethodgetSlicersGets all slicers for the sheet.  
public MethodgetSlicersFromTableGets all slicers for the specified table.  
public MethodgetSpansGets the spans in the specified range in the specified sheet area.  
public MethodgetSparklineGets the sparkline for the specified cell.  
public MethodgetStyleGets the style information for a specified cell in the specified sheet area.  
public MethodgetStyleNameGets the name of the style for a specified cell in the specified sheet area.  
public MethodgetTablesGets the sheet tables.  
public MethodgetTagGets the tag value from the specified cell in the specified sheet area.  
public MethodgetTextGets the formatted text in the cell in the specified sheet area.  
public MethodgetValueGets the unformatted data from the specified cell in the specified sheet area.  
public MethodgetViewportBottomRowGets the index of the bottom row in the viewport.  
public MethodgetViewportHeightGets the height of the specified viewport row for the active sheet.  
public MethodgetViewportLeftColumnGets the index of the left column in the viewport.  
public MethodgetViewportRightColumnGets the index of the right column in the viewport.  
public MethodgetViewportTopRowGets the index of the top row in the viewport.  
public MethodgetViewportWidthGets the width of the specified viewport column for the active sheet.  
public MethodgroupSparklineGroups the sparklines.  
public MethodhasFormulaGets whether there is a formula in the specified cell in this sheet.  
public MethodhasPendingChangesGets whether there is a dirty, insert, or delete status for the specified range.  
public MethodhitTestPerforms a hit test.  
public MethodinvalidateLayoutInvalidates the sheet layout.  
public MethodisColumnBoundGets whether the specified column is bound to a data source.  
public MethodisEditingGets whether the sheet is in edit mode.  
public MethodisPaintSuspendedGets or sets a property that indicates whether to refresh manually or automatically after changing Spread settings.  
public MethodisValidDetermines whether the cell value is valid.  
public MethodmoveTableChanges the table location.  
public MethodmoveTableByNameChanges the table location.  
public MethodmoveToMoves data from one range to another.  
public MethodprintInfoGets or sets the print information for the sheet.  
public MethodprotectionOptionGets or sets a value that indicates the elements that you want users to be able to change.  
public MethodrecalcAllRecalculates all the formulas in the sheet.  
public MethodreferenceStyleGets or sets the style for cell and range references in cell formulas on this sheet.  
public MethodremoveCustomFunctionRemoves the specified user-defined custom function.  
public MethodremoveCustomFunctionDescriptionRemoves a custom function description.  
public MethodremoveCustomNameRemoves a custom name from the custom name collection.  
public MethodremoveFloatingObjectRemoves the custom floating object with the specified name.  
public MethodremoveKeyMapRemoves the shortcut key for the specified action.  
public MethodremoveNamedStyleRemoves a style from the sheet named styles collection which has the specified name.  
public MethodremovePictureRemoves the picture with the specified name.  
public MethodremoveSlicerRemoves a slicer from the sheet.  
public MethodremoveSpanRemoves the span that contains a specified anchor cell in the specified sheet area.  
public MethodremoveSparklineRemoves the sparkline for the specified cell.  
public MethodremoveTableRemoves a specified table.  
public MethodremoveTableByNameRemoves the table with the specified name.  
public MethodrepaintRepaints the specified rectangle.  
public MethodresetResets the sheet.  
public MethodresizeTableChanges the table size.  
public MethodresizeTableByNameChanges the table size.  
public MethodresumeCalcServiceResumes the calculation service.  
public MethodresumeEventResumes the event.  
public MethodrowFilterGets or sets the row filter for the sheet.  
public MethodsearchSearches the specified content.  
public MethodselectionBackColorGets or sets the selection's background color for the sheet.  
public MethodselectionBorderColorGets or sets the selection's border color for the sheet.  
public MethodselectionPolicyGets or sets whether users can select ranges of items.  
public MethodselectionUnitGets or sets whether users can select cells, rows, or columns.  
public MethodsetActiveCellSets the active cell for this sheet.  
public MethodsetArraySets the values in the specified two-dimensional array of objects into the specified range of cells on this sheet.  
public MethodsetArrayFormulaSets a formula in a specified cell in the specified sheet area.  
public MethodsetBindingPathSets the binding path for cell-level binding in a specified cell in the specified sheet area.  
public MethodsetBorderSets the border for the specified area.  
public MethodsetCellTypeSets the cell type.  
public MethodsetColumnCountSets the column count in the specified sheet area.  
public MethodsetColumnHeaderAutoTextSets a value that indicates whether the column header displays letters or numbers or is blank.  
public MethodsetColumnHeaderAutoTextIndexSets which column header row displays the automatic text when there are multiple column header rows.  
public MethodsetColumnHeaderVisibleSets a value that indicates whether the column header is visible.  
public MethodsetColumnPageBreakSets whether a forced page break is inserted before the specified column on this sheet when printing.  
public MethodsetColumnResizableSets whether users can resize the specified column in the specified sheet area.  
public MethodsetColumnVisibleSets whether a column in the specified sheet area is displayed.  
public MethodsetColumnWidthSets the width in pixels for the specified column in the specified sheet area.  
public MethodsetCommentSets a comment for the specified cell.  
public MethodsetCsvSets delimited text (CSV) in the sheet.  
public MethodsetDataSourceSets the data source that populates the sheet.  
public MethodsetDataValidatorSets the cell data validator.  
public MethodsetDefaultStyleSets the default style information for the sheet.  
public MethodsetFloatingObjectZIndexSets the z-index of the floating object.  
public MethodsetFormatterSets the cell formatter.  
public MethodsetFormulaSets a formula in a specified cell in the specified sheet area.  
public MethodsetFrozenColumnCountSets the number of frozen columns.  
public MethodsetFrozenRowCountSet the number of frozen rows.  
public MethodsetFrozenTrailingColumnCountSets the number of trailing frozen columns.  
public MethodsetFrozenTrailingRowCountSets the number of trailing frozen rows.  
public MethodsetGridlineOptionsSets the grid line's options.  
public MethodsetIsProtectedSets a value that indicates whether cells on this sheet that are marked as protected cannot be edited.  
public MethodsetNameSets the name of this sheet.  
public MethodsetRowCountSets the row count in the specified sheet area.  
public MethodsetRowHeaderAutoTextSets a value that indicates whether the row header displays letters or numbers or is blank.  
public MethodsetRowHeaderAutoTextIndexSets which row header column displays the automatic text when there are multiple row header columns.  
public MethodsetRowHeaderVisibleSets a value that indicates whether the row header is visible.  
public MethodsetRowHeightSets the height in pixels for the specified row in the specified sheet area.  
public MethodsetRowPageBreakSets whether a forced page break is inserted before the specified row on this sheet when printing.  
public MethodsetRowResizableSets whether users can resize the specified row in the specified sheet area.  
public MethodsetRowVisibleSets whether the control displays the specified row in the specified sheet area.  
public MethodsetSelectionSets the selection to a cell or a range and sets the active cell to the first cell.  
public MethodsetSparklineSets the sparkline for a cell.  
public MethodsetStyleSets the style information for a specified cell in the specified sheet area.  
public MethodsetStyleNameSets the specified style name for a specified cell in the specified sheet area.  
public MethodsetTagSets the tag value for the specified cell in the specified sheet area.  
public MethodsetTextSets the formatted text in the cell in the specified sheet area.  
public MethodsetValueSets the value for the specified cell in the specified sheet area.  
public MethodsheetTabColorGets or sets a color string used to represent the sheet tab color, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on.  
public MethodshowCellMoves the view of a cell to the specified position in the viewport.  
public MethodshowColumnMoves the view of a column to the specified position in the viewport.  
public MethodshowColumnRangeGroupGets or sets whether the column range group is visible.  
public MethodshowRowMoves the view of a row to the specified position in the viewport.  
public MethodshowRowRangeGroupGets or sets whether the row range group is visible.  
public MethodsortRangeSorts a range of cells in this sheet in the data model.  
public MethodstartEditStarts to edit the cell.  
public MethodsuspendCalcServiceSuspends the calculation service.  
public MethodsuspendEventSuspends the event.  
public MethodtagGets or sets the tag value for the current sheet.  
public MethodtoJSONSaves the object state to a JSON string.  
public MethodunbindRemoves the binding of an event to the sheet.  
public MethodunbindAllRemoves the binding of all events to the sheet.  
public MethodundoManagerGets the undo manager.  
public MethodungroupSparklineUngroups the sparklines in the specified group.  
public MethodvisibleSets whether the sheet is displayed.  
public MethodzoomGets or sets the zoom factor for the sheet.
 
Top
See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.