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

NameTypeAccessDescription
readOnlybooleanReadIndicates whether the collection is immutable

Mètodes

SignatureDescription
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)IPortionReturns the IPortion at the specified index
size()int
count()intReturns 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)intReturns 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)booleanReturns true if the collection includes the specified portion
remove(item: IPortion)booleanDeletes 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
 Català