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

objectCellValue

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

CellValueType

Value

Lấy/thay đổi giá trị ô.

public object Value { get; set; }

Giá trị thuộc tính

object

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ạiGiá trị
Aspose.Cells.CellValueType.IsNullnull, bất kỳ đối tượng nào khác sẽ bị bỏ qua
Aspose.Cells.CellValueType.IsNumericdouble
Aspose.Cells.CellValueType.IsDateTimeDateTime
Aspose.Cells.CellValueType.IsStringstring
Aspose.Cells.CellValueType.IsBoolbool
Aspose.Cells.CellValueType.IsErrorchuỗi lỗi như "#VALUE!", "#NAME?", ...
 Tiếng Việt