DefinedNameCollection
DefinedNameCollection
ภาพรวม
DefinedNameCollection เป็น struct ใน Aspose.Cells FOSS สำหรับ Rust.
แสดงถึงชุดของอ็อบเจกต์ชื่อที่กำหนดไว้.
struct นี้ประกาศ 5 เมธอดสำหรับอ็อบเจกต์ DefinedNameCollection ในโปรแกรม Rust. เมธอดที่มีให้รวมถึง: add, add_with_scope, count, get, remove_at. สมาชิกสาธารณะสามารถเข้าถึงได้โดยแอปพลิเคชัน Rust ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.Cells FOSS สำหรับ Rust.
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
count() → usize | รับจำนวนรายการ. |
add(name: impl Into<String>, formula: impl Into<String>) → Result<usize, CellsError> | เพิ่มรายการที่ระบุ. |
add_with_scope(name: impl Into<String>, formula: impl Into<String>, local_sheet_index: Option<usize>) → Result<usize, CellsError> | เพิ่มรายการ. |
get(index: usize) → Option<DefinedName<'_>> | รับรายการจากคอลเลกชัน. |
remove_at(index: usize) → Result<(), CellsError> | ลบรายการ. |