PortionCollection

PortionCollection

ภาพรวม

PortionCollection เป็นคลาสใน Aspose.Slides FOSS สําหรับ Java. ทายาทจาก: IPortionCollection.

แสดงถึงการรวบรวมส่วนของข้อความภายในบทหนึ่ง.

หมวดนี้ให้ 16 วิธีในการทํางานกับวัตถุ PortionCollection ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: PortionCollection, add, asIEnumerable, clear, contains, count, get, indexOf, insert, isReadOnly, iterator, remove,และวิธีการเพิ่มเติม 2 วิธี. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: readOnly.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
readOnlybooleanอ่านรับค่าแบบอ่านอย่างเดียว.

วิธีการ

Signatureคําอธิบาย
PortionCollection()สร้าง PortionCollection ที่ว่างเปล่า.
PortionCollection(portions: List<IPortion>)สร้าง PortionCollection ด้วยส่วนแรกที่ให้.
PortionCollection(pElement: Element, saveCallback: Runnable)สร้าง PortionCollection ที่รองรับ XML.
get(index: int)IPortionการคืน IPortion ที่อัตราการแสดงที่ระบุ
size()int
count()intส่งจํานวนส่วน (ชื่อของขนาด)
isReadOnly()booleanกลับ true หากตั้งค่า read only.
asIEnumerable()Iterable<IPortion>ให้ความสามารถในการใช้งานต่อส่วนต่างๆ
add(value: IPortion)เพิ่มส่วนหนึ่งที่ปลายของสะสม
indexOf(item: IPortion)intการคืนตัวอัตราส่วนที่กําหนดไว้ หรือ -1
insert(index: int, value: IPortion)การใส่ส่วนที่อัตราการแสดงตัวให้
clear()
contains(item: IPortion)booleanตรวจสอบว่าการเก็บรวมมีส่วนที่กําหนดหรือไม่
remove(item: IPortion)booleanลบการเกิดขึ้นครั้งแรกของส่วนและคืนความสําเร็จ
removeAt(index: int)ลบส่วนที่อยู่ในอัตราส่องที่ถูกให้
iterator()Iterator<IPortion>การคืนการคัดสรรของส่วนต่างๆ

ดูเช่นกัน

 ภาษาไทย