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 14 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) | Sets the cell’s value to the given integer. |
PutValue(value: decimal) | Sets the cell’s value to the given decimal number. |
PutValue(value: double) | Sets the cell’s value to the given double-precision number. |
PutValue(value: bool) | Sets the cell’s value to the given boolean. |
PutValue(value: DateTime) | Sets the cell’s value to the given date/time. |
GetStyle() | Returns the cell’s current style object |
SetStyle(style: Style) | Applies the specified style to the cell |