CommentCollection

CommentCollection

ภาพรวม

CommentCollection เป็น struct ใน Aspose.Cells FOSS สำหรับ Rust.

แทนชุดของคอมเมนต์ (หมายเหตุเก่า) บนแผ่นงาน.

struct นี้ประกาศ 11 เมธอดสำหรับอ็อบเจ็กต์ CommentCollection ในโปรแกรม Rust. เมธอดที่มีให้รวมถึง: add, add_a1, clear, count, get, get_by_cell_name, get_count, item, item_by_cell_name, remove_at, remove_at_cell_name. สมาชิกสาธารณะสามารถเข้าถึงได้จากแอปพลิเคชัน Rust ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.Cells FOSS สำหรับ Rust.

วิธีการ

ลายเซ็นคำอธิบาย
count() → usizeรับจำนวนของรายการ.
get_count() → usizeรับจำนวนรายการ.
add(row: i32, column: i32) → Result<usize, CellsError>เพิ่มคอมเมนต์ว่างที่อ้างอิงเซลล์แบบ A1 ที่กำหนดและส่งคืนมัน.
add_a1(cell_name: impl Into<String>) → Result<usize, CellsError>เพิ่มรายการ.
get(index: usize) → Option<Comment<'_>>รับรายการจากคอลเลกชัน.
item(index: usize) → Option<Comment<'_>>ดึงรายการจากคอลเลกชัน.
get_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError>รับค่าที่เกี่ยวข้อง.
item_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError>ดึงรายการจากคอลเลกชัน.
remove_at(index: usize) → Result<(), CellsError>ลบรายการ.
remove_at_cell_name(cell_name: impl Into<String>) → Result<(), CellsError>ลบรายการ.
clear()ล้างสถานะปัจจุบัน.

ดูเพิ่มเติม

 ภาษาไทย