Spread.Sheets Documentation
Worksheet type
Represents a worksheet.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
function Worksheet;
Remarks

This table lists the Worksheet options.

Name Type Description
allowCellOverflow boolean Specifies whether data can overflow into adjacent empty cells, optional.
sheetTabColor string A color string used to represent the sheet tab color, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on, optional.
frozenlineColor string A color string used to represent the frozen line color, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on, optional.
clipBoardOptions GC.Spread.Sheets.ClipboardPasteOptions The clipboard option, optional.
gridline object The grid line's options, optional.
gridline.color string The grid line color, optional.
gridline.showVerticalGridline boolean Specifies whether to show the vertical grid line, optional.
gridline.showHorizontalGridline boolean Specifies whether to show the horizontal grid line, optional.
rowHeaderVisible boolean Specifies whether the row header is visible, optional.
colHeaderVisible boolean Specifies whether the column header is visible, optional.
rowHeaderAutoText GC.Spread.Sheets.HeaderAutoText Specifies whether the row header displays letters or numbers or is blank, optional.
colHeaderAutoText GC.Spread.Sheets.HeaderAutoText Specifies whether the column header displays letters or numbers or is blank, optional.
rowHeaderAutoTextIndex number Specifies which row header column displays the automatic text when there are multiple row header columns, optional.
colHeaderAutoTextIndex number Specifies which column header row displays the automatic text when there are multiple column header rows, optional.
isProtected boolean Specifies whether cells on this sheet that are marked as protected cannot be edited, optional.
protectionOptions object A value that indicates the elements that you want users to be able to change, optional.
protectionOptions.allowSelectLockedCells boolean Specifies whether the user can select locked cells, optional.
protectionOptions.allowSelectUnlockedCells boolean Specifies whether the user can select unlocked cells, optional.
protectionOptions.allowSort boolean Specifies whether the user can sort ranges, optional.
protectionOptions.allowFilter boolean Specifies whether the user can filter ranges, optional.
protectionOptions.allowEditObjects boolean Specifies whether the user can edit floating objects, optional.
protectionOptions.allowResizeRows boolean Specifies whether the user can resize columns, optional.
selectionBackColor string The selection's background color for the sheet, optional.
selectionBorderColor string The selection's border color for the sheet, optional.
Inheritance Hierarchy

Object
   GC.Spread.Sheets.Worksheet

Constructors
 NameDescription
public ConstructorWorksheet ConstructorRepresents a worksheet.  
Top
Fields
 NameDescription
public FieldautoGenerateColumnsIndicates whether to generate columns automatically while binding data context.  
public FieldcolumnOutlinesIndicates the column range group.  
public FieldcommentsComment manager for the sheet.  
public FieldconditionalFormatsConditional format manager for the sheet.  
public FielddefaultsIndicates the default row height and column width of the sheet.  
public FieldfloatingObjectsFloatingObject manager for the sheet.  
public FieldoptionsIndicates the options of the sheet.  
public FieldpicturesPicture manager for the sheet.  
public FieldrowOutlinesIndicates the row range group.  
public FieldslicersThe slicer manager.  
public FieldtablesThe table manager.  
Top
Methods
 NameDescription
public MethodaddColumnsAdds the column or columns to the data model at the specified index.  
public MethodaddCustomFunctionAdds a custom function.  
public MethodaddCustomNameAdds a custom name.  
public MethodaddNamedStyleAdds a style to the Worksheet named styles collection.  
public MethodaddRowsAdds rows in this worksheet.  
public MethodaddSelectionAdds a cell or cells to the selection.  
public MethodaddSpanAdds a span of cells to this sheet in the specified sheet area.  
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 MethodclearCustomFunctionsClears all custom functions.  
public MethodclearCustomNamesClears custom names.  
public MethodclearPendingChangesClears the dirty, insert, and delete status from the current worksheet.  
public MethodclearSelectionClears the selection.  
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 worksheet at the specified index.  
public MethodeditorStatusReturns the editor's status.  
public MethodendEditStops editing the active cell.  
public MethodfillAutoFills the specified range automatically.  
public MethodfromJSONLoads the object state from the specified JSON string.  
public MethodfrozenColumnCountGets or sets the number of frozen columns of the sheet.  
public MethodfrozenRowCountGets or sets the number of frozen rows of the sheet.  
public MethodfrozenTrailingColumnCountGets or sets the number of trailing frozen columns of the sheet.  
public MethodfrozenTrailingRowCountGets or sets the number of trailing frozen rows of the sheet.  
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 MethodgetCellGets the specified cell in the specified sheet area.  
public MethodgetCellRectGets the rectangle of the cell.  
public MethodgetCellTypeGets the cell type.  
public MethodgetColumnCountGets the column count in the specified sheet area.  
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 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 MethodgetCsvGets delimited text from a range.  
public MethodgetCustomFunctionGets a custom function.  
public MethodgetCustomNameGets the specified custom name information.  
public MethodgetCustomNamesGets all custom name information.  
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 MethodgetDeletedRowsGets the deleted row collection.  
public MethodgetDirtyCellsGets the dirty cell collection.  
public MethodgetDirtyRowsGets the dirty row collection.  
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 MethodgetInsertRowsGets the inserted row collection.  
public MethodgetNamedStyleGets a style from the Worksheet named styles collection which has the specified name.  
public MethodgetNamedStylesGets named styles from the Worksheet.  
public MethodgetParentGets the parent Spread object of the current sheet.  
public MethodgetRangeGets a range of cells in the specified sheet area.  
public MethodgetRowCountGets the row count in the specified sheet area.  
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 MethodgetRowVisibleGets whether the control displays the specified row.  
public MethodgetSelectionsGets the selections in the current sheet.  
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 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 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 MethodisEditingGets whether the sheet is in edit mode.  
public MethodisPaintSuspendedGet if sheet paint is suspended.  
public MethodisValidDetermines whether the cell value is valid.  
public MethodmoveToMoves data from one range to another.  
public MethodnameGets or sets the name of the worksheet.  
public MethodprintInfoGets or sets the print information for the sheet.  
public MethodrecalcAllRecalculates all the formulas in the sheet.  
public MethodremoveCustomFunctionRemoves a custom function.  
public MethodremoveCustomNameRemoves the specified custom name.  
public MethodremoveNamedStyleRemoves a style from the Worksheet named styles collection which has the specified name.  
public MethodremoveSpanRemoves the span that contains a specified anchor cell in the specified sheet area.  
public MethodremoveSparklineRemoves the sparkline for the specified cell.  
public MethodrepaintRepaints the specified rectangle.  
public MethodresetResets the sheet.  
public MethodresumeCalcServiceResumes the calculation service.  
public MethodresumeEventResumes the event.  
public MethodresumePaintResumes the paint.  
public MethodrowFilterGets or sets the row filter for the sheet.  
public MethodsearchSearches the specified content.  
public MethodselectionPolicyGets or sets whether users can select ranges of items on a sheet.  
public MethodselectionUnitGets or sets whether users can select cells, rows, or columns on a sheet.  
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 MethodsetCellTypeSets the cell type.  
public MethodsetColumnCountSets the column count in the specified sheet area.  
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 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 MethodsetFormatterSets the cell formatter.  
public MethodsetFormulaSets a formula in a specified cell in the specified sheet area.  
public MethodsetRowCountSets the row count in the specified sheet area.  
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 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 MethodshowColumnOutlineGets or sets whether the column outline (range group) is visible.  
public MethodshowRowMoves the view of a row to the specified position in the viewport.  
public MethodshowRowOutlineGets or sets whether the row outline (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 MethodsuspendPaintSuspends the paint.  
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 MethodungroupSparklineUngroups the sparklines in the specified group.  
public MethodvisibleSets whether the worksheet is displayed.  
public MethodzoomGets or sets the zoom factor for the sheet.
 
Top
See Also

Reference

GC.Spread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.