ChartCollection
ChartCollection
ภาพรวม
ChartCollection เป็น struct ใน Aspose.Cells FOSS สำหรับ Rust.
แสดงถึงคอลเลกชันของแผนภูมิต่าง ๆ บนแผ่นงาน.
struct นี้ประกาศ 6 เมธอดสำหรับอ็อบเจกต์ ChartCollection ในโปรแกรม Rust. เมธอดที่มี ได้แก่: add, count, get, get_count, item, remove_at. สมาชิกสาธารณะสามารถเข้าถึงได้จากแอปพลิเคชัน Rust ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.Cells FOSS สำหรับ Rust.
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
count() → usize | รับจำนวนแผนภูมิในแผ่นงาน. |
get_count() → i32 | รับจำนวนแผนภูมิบนแผ่นงาน. |
add(chart_type: ChartType, data_range: String, upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32) → Result<i32, CellsError> | เพิ่มแผนภูมิใหม่ประเภทที่ระบุลงในแผ่นงาน. |
get(index: usize) → Option<Chart<'_>> | รับแผนภูมิที่ตำแหน่งดัชนีศูนย์ฐานที่ระบุ. |
item(index: usize) → Option<Chart<'_>> | รับแผนภูมิที่ตำแหน่งดัชนีที่เริ่มจากศูนย์ตามที่ระบุ. |
remove_at(index: usize) → Result<(), CellsError> | ลบแผนภูมิที่ตำแหน่งดัชนีเริ่มจากศูนย์ที่ระบุ. |