Class CellValue
Class CellValue
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
Đại diện cho giá trị ô và loại tương ứng.
public class CellValue
Kế thừa
Các thành viên kế thừa
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Các hàm khởi tạo
CellValue()
public CellValue()
Các thuộc tính
Type
Lấy/thay đổi loại giá trị ô.
public CellValueType Type { get; set; }
Giá trị thuộc tính
Value
Lấy/thay đổi giá trị ô.
public object Value { get; set; }
Giá trị thuộc tính
Nhận xét
Giá trị phải là loại đối tượng đúng tương ứng với Aspose.Cells.CellValue.Type:
Loại | Giá trị |
---|---|
Aspose.Cells.CellValueType.IsNull | null, bất kỳ đối tượng nào khác sẽ bị bỏ qua |
Aspose.Cells.CellValueType.IsNumeric | double |
Aspose.Cells.CellValueType.IsDateTime | DateTime |
Aspose.Cells.CellValueType.IsString | string |
Aspose.Cells.CellValueType.IsBool | bool |
Aspose.Cells.CellValueType.IsError | chuỗi lỗi như "#VALUE!", "#NAME?", ... |