Paragraphe

Vue de l’ensemble

‘Paragrafs’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: ‘Iterable’.

Il représente une collection commandée d’éléments qui composent le contenu d’une page, de cellule ou d ́un autre conteneur.

Cette classe fournit 10 méthodes pour travailler avec des objets Paragrafs dans les programmes Java. Les méthodologies disponibles comprennent: ‘Paragraphs’, ‘add’ , ‘clear’, get', ‘getCount', ’isEmpty’, 'iterator', ‚remove, ‘size’. Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘count’, «empty’.

Propriétés

NameTypeAccessDescription
countintReadReturns the number of paragraphs in this collection.
emptybooleanReadReturns whether this collection contains no paragraphs.

méthodes

SignatureDescription
Paragraphs()Creates an empty Paragraphs collection.
add(paragraph: BaseParagraph)Adds a paragraph to the end of this collection.
add(text: String)Convenience method that creates a {@link TextFragment} from the given text
and adds it to this collection.
get(index: int)BaseParagraphReturns the paragraph at the specified index.
size()intReturns the number of paragraphs in this collection.
getCount()intReturns the number of paragraphs in this collection.
remove(index: int)BaseParagraphRemoves the paragraph at the specified index.
clear()Removes all paragraphs from this collection.
isEmpty()booleanReturns whether this collection contains no paragraphs.
iterator()Iterator<BaseParagraph>Returns an iterator over the paragraphs in this collection.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français