Cell

Overview

Cell is a type in Aspose.Cells FOSS for Go.

Cell represents a single cell in a worksheet grid.

Available methods include: GetFormula, GetStyle, SetFormula, SetStyle. All public members are accessible to any Go application after installing the Aspose.Cells FOSS for Go package. Properties: Formula, Ref, StyleID, Value, XMLName.

Properties

NameTypeAccessDescription
XMLNamexml:"c"Read/WriteGets the xml name.
Refxml:"r,attr"Read/WriteGets the ref.
StyleIDxml:"s,attr,omitempty"Read/WriteGets the style id.
Valuexml:"v,omitempty"Read/WriteGets the value.
Formulaxml:"f,omitempty"Read/WriteGets the formula.

Methods

SignatureDescription
SetStyle(style: *Style) → errorSetStyle assigns the given Style to this cell.
GetStyle() → *StyleGetStyle returns the Style currently applied to this cell, or nil when the cell has no parent Workbook or the StyleID cannot be resolved.
SetFormula(formula: string)SetFormula stores a formula expression in this cell and marks the owning Workbook as modified.
GetFormula() → stringGetFormula returns the formula expression stored in this cell, or an empty string when the cell contains no formula.

See Also

 English