Fill
ภาพรวม
Fill เป็น struct ใน Aspose.Cells FOSS สำหรับ Rust. สืบทอดจาก: Debug, Clone, PartialEq และอีก 3 รายการ.
แสดงถึงส่วนหน้าสไตล์เซลล์ที่เปลี่ยนแปลงได้ซึ่งสามารถนำไปใช้กับหนึ่งหรือหลายเซลล์.
struct นี้ประกาศ 9 เมธอดสำหรับอ็อบเจกต์ Fill ในโปรแกรม Rust. เมธอดที่มีรวมถึง: clear_background_color, clear_foreground_color, get_background_color, get_foreground_color, get_pattern, new, set_background_color, set_foreground_color, set_pattern. สมาชิกสาธารณะสามารถเข้าถึงได้จากแอปพลิเคชัน Rust ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.Cells FOSS สำหรับ Rust. ฟิลด์: background_color, foreground_color, pattern.
ฟิลด์
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
pattern | FillPattern | อ่าน/เขียน | รับรูปแบบ. |
foreground_color | Option<String> | อ่าน/เขียน | รับค่าสีพื้นหน้า. |
background_color | Option<String> | อ่าน/เขียน | รับค่าสีพื้นหลัง. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
new() → Self | เริ่มต้นอินสแตนซ์ใหม่. |
get_pattern() → FillPattern | รับรูปแบบการเติม. |
set_pattern(value: FillPattern) | ตั้งค่ารูปแบบการเติม. |
get_foreground_color() → Option<&str> | รับสีพื้นหน้าของการเติม. |
set_foreground_color(value: impl Into<String>) | ตั้งค่าสีพื้นหน้าของการเติม. |
clear_foreground_color() | ลบสีพื้นหน้า. |
get_background_color() → Option<&str> | รับสีพื้นหลังของการเติม. |
set_background_color(value: impl Into<String>) | ตั้งค่าสีพื้นหลังของ fill. |
clear_background_color() | ลบสีพื้นหลัง. |