PortionCollection
General
PortionCollection is a class in Aspose.Slides FOSS for Java.
Inherits from: IPortionCollection.
PortionCollection és una classe en Aspose.Slides FOSS per a Java. És heretat de: ゚IPortionCollection⌒ .
Representa una col·lecció de parts de text dins d’un paràgraf.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
readOnly | boolean | Read | Indicates whether the collection is immutable |
Mètodes
| Signature | Description |
|---|---|
PortionCollection() | Creates an empty PortionCollection. |
PortionCollection(portions: List<IPortion>) | Creates a PortionCollection with the given initial portions. |
PortionCollection(pElement: Element, saveCallback: Runnable) | Creates an XML-backed PortionCollection. |
get(index: int) → IPortion | Returns the IPortion at the specified index |
size() → int | |
count() → int | Returns the total count of portions |
isReadOnly() → boolean | |
asIEnumerable() → Iterable<IPortion> | Provides an Iterable over the IPortion elements |
add(value: IPortion) | Appends the specified portion to the collection |
indexOf(item: IPortion) → int | Returns the zero‑based index of the given portion or -1 if absent |
insert(index: int, value: IPortion) | Inserts the portion at the specified position |
clear() | |
contains(item: IPortion) → boolean | Returns true if the collection includes the specified portion |
remove(item: IPortion) → boolean | Deletes the first occurrence of the portion and returns success status |
removeAt(index: int) | Removes the portion at the given index |
iterator() → Iterator<IPortion> | Provides an Iterator to traverse the portions |