Cell
Overview
Cell 是 NET 的 Aspose.Cells 中的一个类.
Cell.PutValue sets the cell’s value to the given string.
Description
Cell 是一个类在Aspose.Cells FOSS库的.NET,它暴露了14种方法和5个属性用于编程使用.
课程还提供了 StringValue 值的表现,该函数是: DisplayStringValue 属性 (得到了 ui 中显示的格式化的字符串), Type 值类型 (得到指标单元格的数量).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Value | object? | 阅读/写作 | 获取或设置作为对象的单元格原始值 |
StringValue | string | Read | 获取单元格的值作为字符串表示. |
DisplayStringValue | string | Read | 获取 UI 中显示的格式化字符串 |
Formula | string | 阅读/写作 | 获取或设置单元格的公式表达式. |
Type | CellValueType | Read | 获取指标单元格的值类型的数量 |
Methods
| Signature | Description |
|---|---|
PutValue(value: string) | 将单元格的值设置为给定的字符串. |
PutValue(value: int) | 将单元格的值设置为给定的整数. |
PutValue(value: decimal) | 将单元格的值设置为给定的小数. |
PutValue(value: double) | 将单元格的值设置为给定的双精度数. |
PutValue(value: bool) | 将单元格的值设置为给定的布尔数. |
PutValue(value: DateTime) | 将单元格的值设置为给定的日期/时间. |
GetStyle() | 返回细胞的当前样式对象. |
SetStyle(style: Style) | 将指定样式应用到单元格中. |