Cell
Overview
Cell is a class in Aspose.Cells for NET.
Cell.PutValue sets the cell’s value to the given string.
Description
Cell is a class in the Aspose.Cells FOSS library for .NET that exposes 8 methods and 5 properties for programmatic use.
The class also provides the StringValue property (gets the cell’s value as a string representation), the DisplayStringValue property (gets the formatted string shown in the ui), the Type property (gets the enumeration indicating the cell’s value type).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Value | object? | Read/Write | Gets or sets the raw value of the cell as an object |
StringValue | string | Read | Gets the cell’s value as a string representation |
DisplayStringValue | string | Read | Gets the formatted string shown in the UI |
Formula | string | Read/Write | Gets or sets the cell’s formula expression |
Type | CellValueType | Read | Gets the enumeration indicating the cell’s value type |
Methods
| Signature | Description |
|---|---|
PutValue(value: string) | Sets the cell’s value to the given string |
PutValue(value: int) | |
PutValue(value: decimal) | |
PutValue(value: double) | |
PutValue(value: bool) | |
PutValue(value: DateTime) | |
GetStyle() | Returns the cell’s current style object |
SetStyle(style: Style) | Applies the specified style to the cell |