PortionCollection

PortionCollection

ภาพรวม

PortionCollection เป็นคลาสใน Aspose.Slides FOSS สําหรับ .NET. ทายาทจาก: ISlideComponent, IPortionCollection, IEnumerable<IPortion>.

แสดงให้เห็นถึงการรวมส่วนที่เปลี่ยนแปลงได้ของชิ้นส่วนที่เป็นส่วนประกอบของสไลด์.

หมวดนี้ให้ 9 วิธีในการทํางานกับวัตถุ PortionCollection ในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: Add, Clear, Contains, GetEnumerator, GetPortions, IndexOf, Insert, Remove, RemoveAt. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.Slides FOSS for .Net. คุณสมบัติ: AsIEnumerable, AsIPresentationComponent, Count, IsReadOnly, Presentation, Slide.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
SlideIBaseSlide?อ่านรับสไลด์.
PresentationIPresentation?อ่านรับการนำเสนอ.
AsIPresentationComponentIPresentationComponentอ่านรับส่วนประกอบการนำเสนอ as i.
AsIEnumerableIEnumerable<IPortion>อ่านรับค่าเป็น IEnumerable.
Countintอ่านรับจำนวน.
IsReadOnlyboolอ่านรับค่า is read only.

วิธีการ

Signatureคําอธิบาย
GetPortions()รับส่วนต่าง ๆ จากองค์ประกอบย่อหน้า XML ที่อยู่ภายใต้.
Add(value: IPortion)การใส่ IPortion ที่ระบุเข้าในคอลเลกชั่น
IndexOf(item: IPortion)การคืนอินเด็กซ์ที่ตั้งบนศูนย์ของ IPortion ที่ได้รับการกําหนด
Insert(index: int, value: IPortion)วาง IPortion ที่อินเด็กซ์ที่กําหนด
Clear()เรียก Clear ในตัวอย่าง PortionCollection นี้.
Contains(item: IPortion)ตรวจสอบว่าการรวบรวมมี IPortion หรือไม่
Remove(item: IPortion)ลบครั้งแรกของ IPortion ที่ระบุไว้
RemoveAt(index: int)ลบส่วนที่อยู่ในอัตราส่องที่ถูกให้
GetEnumerator()ให้การซ้ําต่อของสะสม

ดูเช่นกัน

 ภาษาไทย