NumberFormat

NumberFormat

ภาพรวม

NumberFormat เป็น struct ใน Aspose.Cells FOSS สำหรับ Rust. สืบทอดจาก: Default, Clone, PartialEq.

ให้การดำเนินการรูปแบบตัวเลข.

struct นี้ประกาศ 5 เมธอดสำหรับวัตถุ NumberFormat ในโปรแกรม Rust. เมธอดที่มีรวมถึง: create_built_in_formats, get_built_in_format, get_built_in_format_id, is_built_in_format, resolve_format_code. สมาชิกสาธารณะสามารถเข้าถึงได้โดยแอปพลิเคชัน Rust ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.Cells FOSS สำหรับ Rust.

วิธีการ

ลายเซ็นคำอธิบาย
get_built_in_format(format_id: i32) → Stringรับค่าที่เกี่ยวข้อง.
is_built_in_format(format_code: String) → boolคืนค่าว่าเป็นรูปแบบในตัวหรือไม่.
get_built_in_format_id(format_code: String) → Option<i32>รับค่าที่เชื่อมโยง.
resolve_format_code(number: i32, custom: String) → Stringหาค่า format code ที่มีผลจาก built-in format id และ custom code (ถ้ามี).
create_built_in_formats() → HashMap<i32, String>สร้างแผนที่จาก built-in Excel number format ids ไปยัง format codes.

ดูเพิ่มเติม

 ภาษาไทย