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 | คําอธิบาย |
|---|---|---|---|
readOnly | boolean | อ่าน | รับค่าแบบอ่านอย่างเดียว. |
วิธีการ
| 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> | การคืนการคัดสรรของส่วนต่างๆ |