NumberFormat
Overview
NumberFormat is a struct in Aspose.Cells FOSS for Rust.
Inherits from: Default, Clone, PartialEq.
Provides number format operations.
This struct provides 5 methods for working with NumberFormat objects in Rust programs.
Available methods include: create_built_in_formats, get_built_in_format, get_built_in_format_id, is_built_in_format, resolve_format_code.
All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.
Methods
| Signature | Description |
|---|---|
get_built_in_format(format_id: i32) → String | Gets the associated value. |
is_built_in_format(format_code: String) → bool | Returns whether built in format. |
get_built_in_format_id(format_code: String) → Option<i32> | Gets the associated value. |
resolve_format_code(number: i32, custom: String) → String | Resolves the effective format code from a built-in format id and optional custom code. |
create_built_in_formats() → HashMap<i32, String> | Creates a map of built-in Excel number format ids to format codes. |