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
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Returns the number of paragraphs in this collection. |
empty | boolean | Read | Returns whether this collection contains no paragraphs. |
méthodes
| Signature | Description |
|---|---|
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) → BaseParagraph | Returns the paragraph at the specified index. |
size() → int | Returns the number of paragraphs in this collection. |
getCount() → int | Returns the number of paragraphs in this collection. |
remove(index: int) → BaseParagraph | Removes the paragraph at the specified index. |
clear() | Removes all paragraphs from this collection. |
isEmpty() → boolean | Returns 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