ParagraphCollection

ParagraphCollection

ภาพรวม

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

เป็นการแสดงรวมของข้อความ.

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

คุณสมบัติ

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

วิธีการ

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

ดูเช่นกัน

 ภาษาไทย