Class CellValue
Class CellValue
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
表示单元格值及其对应类型。
public class CellValue
继承
继承成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
构造函数
CellValue()
public CellValue()
属性
Type
获取/设置单元格值的类型。
public CellValueType Type { get; set; }
属性值
Value
获取/设置单元格值。
public object Value { get; set; }
属性值
备注
值必须是与 Aspose.Cells.CellValue.Type 对应的正确类型的对象:
类型 | 值 |
---|---|
Aspose.Cells.CellValueType.IsNull | null,任何其他对象将被忽略 |
Aspose.Cells.CellValueType.IsNumeric | double |
Aspose.Cells.CellValueType.IsDateTime | DateTime |
Aspose.Cells.CellValueType.IsString | string |
Aspose.Cells.CellValueType.IsBool | bool |
Aspose.Cells.CellValueType.IsError | 错误字符串,例如 "#VALUE!","#NAME?",... |