RowCollection
ภาพรวม
RowCollection เป็นคลาสใน Aspose.Slides FOSS สําหรับ .NET. ทายาทจาก: IRowCollection, IEnumerable<IRow>.
แสดงให้เห็นถึงการรวมแถวในตาราง.
หมวดนี้ให้ 4 วิธีในการทํางานกับ RowCollection วัตถุในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: AddClone, GetEnumerator, InsertClone, RemoveAt. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.Slides FOSS for .Net. คุณสมบัติ: AsICollection, AsIEnumerable, Count.
คุณสมบัติ
| ชื่อ | ประเภท | Access | คําอธิบาย |
|---|---|---|---|
Count | int | อ่าน | รับจำนวน. |
AsICollection | IList<IRow> | อ่าน | รับสำเนาแบบตื้นของแถวทั้งหมดเป็นรายการ. |
AsIEnumerable | IEnumerable<IRow> | อ่าน | รับ enumerable ของแถว. |
วิธีการ
| Signature | คําอธิบาย |
|---|---|
AddClone(templ: IRow, withAttachedRows: bool) | เพิ่มคลอนของ IRow ที่ได้รับ, โดยเลือกรวมแถวที่ติดต่อ |
InsertClone(index: int, templ: IRow, withAttachedRows: bool) | การใส่ IRow ที่คลอนไว้ในอัตรานิยมที่ระบุ, โดยเลือกได้พร้อมกับแถวติดต่อ |
RemoveAt(firstRowIndex: int, withAttachedRows: bool) | เรียก RemoveAt ((firstRowIndex, withAttachedRows) ในตัวอย่างนี้ RowCollection. |
GetEnumerator() | เรียก GetEnumerator ในตัวอย่างนี้ RowCollection. |