Represents a cell in a Microsoft Excel worksheet.

WorksheetCell

new WorksheetCell(a: WorksheetRow, b: number): WorksheetCell

Returns WorksheetCell

$t: Type
comment: WorksheetCellComment
dataValidationRule: DataValidationRule
value: any

Gets the data table to which the cell belongs.

get associatedDataTable(): WorksheetDataTable

Returns WorksheetDataTable

Gets the merged cells region which contains the cell, or null if the cell is not merged.

get associatedMergedCellsRegion(): WorksheetMergedCellsRegion

Returns WorksheetMergedCellsRegion

Gets the [[WorksheetTable]] to which this cell belongs.

get associatedTable(): WorksheetTable

Returns WorksheetTable

Gets the cell formatting for this cell.

get cellFormat(): IWorksheetCellFormat

Returns IWorksheetCellFormat

Gets the column index of the cell. The column index of the cell.

get columnIndex(): number

Returns number

Gets the formula which has been applied to the cell.

get formula(): Formula

Returns Formula

Gets the value which indicates whether the cell's format has been initialized yet.

get hasCellFormat(): boolean

Returns boolean

Get the value indicating whether the cell has an associated comment.

get hasComment(): boolean

Returns boolean

Gets the row index of the cell. The row index of the cell.

get rowIndex(): number

Returns number

Gets the worksheet to which the cell belongs. The worksheet to which the cell belongs.

get worksheet(): Worksheet

Returns Worksheet

Applies a formula to the cell.

applyFormula(value: string): void

Parameters

  • value: string

    The formula to parse and apply to the cell.

Returns void

Removes the comment associated with the cell.

clearComment(): void

Returns void

Determines whether the specified object is another [[WorksheetCell]] instance which refers to the same location on the same worksheet as this cell.

equals(obj: any): boolean

Parameters

  • obj: any

    The instance to check for equality.

Returns boolean

Gets the bounds of the cell in twips (1/20th of a point).

getBoundsInTwips(): IgRect

Returns IgRect

Gets the hash code of the [[WorksheetCell]].

getHashCode(): number

Returns number

Gets the effective hyperlink on the cell.

getHyperlink(): WorksheetHyperlink

Returns WorksheetHyperlink

Gets the resolved cell formatting for this cell.

getResolvedCellFormat(): IWorksheetCellFormat

Returns IWorksheetCellFormat

Gets the text displayed in the cell.

getText(): string

Returns string

Gets the string representation of the address of the cell.

toString(): string

Returns string

Returns a boolean indicating if the value of the cell is valid considering the associated [[dataValidationRule]]

validateValue(): boolean

Returns boolean

Gets the string representation of the address of the cell.

getCellAddressString(worksheetRow: WorksheetRow, columnIndex: number, cellReferenceMode: CellReferenceMode, includeWorksheetName: boolean): string

Parameters

  • worksheetRow: WorksheetRow

    The WorksheetRow of the cell.

  • columnIndex: number

    The index of the column of the cell.

  • cellReferenceMode: CellReferenceMode

    The mode used to generate cell references.

  • includeWorksheetName: boolean

    The value indicating whether to include the worksheet name in the cell address.

Returns string

Returns True if a particular type of value can be exported to excel.

isCellTypeSupported(cellType: Type): boolean

Parameters

  • cellType: Type

    The type to test.

Returns boolean