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
| Name | Type | Access | Description |
|---|---|---|---|
XMLName | xml:"c" | Read/Write | Gets the xml name. |
Ref | xml:"r,attr" | Read/Write | Gets the ref. |
StyleID | xml:"s,attr,omitempty" | Read/Write | Gets the style id. |
Value | xml:"v,omitempty" | Read/Write | Gets the value. |
Formula | xml:"f,omitempty" | Read/Write | Gets the formula. |
Methods
| Signature | Description |
|---|---|
SetStyle(style: *Style) → error | SetStyle assigns the given Style to this cell. |
GetStyle() → *Style | GetStyle 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() → string | GetFormula returns the formula expression stored in this cell, or an empty string when the cell contains no formula. |