CellValueHandler

General

CellValueHandler és un enum a Aspose.Cells per Python.

Mantenir les operacions d’importació i exportació de valors en cèl·lula segons la especificació ECMA-376.

Valors

ValueDescription
TYPE_SHARED_STRINGRepresents the ’s’ type for shared string cells
TYPE_INLINE_STRINGRepresents the ‘str’ type for inline string cells
TYPE_NUMBERRepresents the ’n’ type for numeric cells
TYPE_BOOLEANRepresents the ‘b’ type for boolean cells
TYPE_ERRORRepresents the ’e’ type for error cells
ERROR_NULLRepresents the ‘#NULL!’ error value
ERROR_DIV_0Represents the ‘#DIV/0!’ error value
ERROR_VALUERepresents the ‘#VALUE!’ error value
ERROR_REFRepresents the ‘#REF!’ error value
ERROR_NAMERepresents the ‘#NAME?’ error value
ERROR_NUMRepresents the ‘#NUM!’ error value
ERROR_NARepresents the ‘#N/A’ error value
VALID_ERRORSRepresents the set of all defined ECMA-376 error strings

Mètodes

SignatureDescription
get_cell_type(value)Determines the ECMA-376 cell type attribute for a given value.
format_value_for_xml(value, cell_type)Formats a cell value for XML output according to ECMA-376 specification.
parse_value_from_xml(value_str, cell_type, shared_strings)Parses a cell value from XML according to ECMA-376 specification.
excel_serial_to_datetime(serial_date)Converts an Excel serial date number to a datetime object.
is_error_value(value)Checks if a value is a valid ECMA-376 error value.
get_error_type(value)Returns the error type name for a given error value.
 Català