ParagraphCollection
Vue de l’ensemble
‘ParagraphCollection’ est une classe dans Aspose.Slides FOSS pour Java. Il découle de: BaseColection<IParagraf>, IParaagraffCollection et `ISlideComponent’.
Il représente une collection de paragraphes.
Cette classe fournit 21 méthodes pour travailler avec des objets de collection paragraph dans les programmes Java. Les méthodologies disponibles comprennent: ParagrafCollection, add , asIEnumerable ; AsIPresentationComponent; ASISlideComposent‘ ; 'clear : contenusetcontenus’ ; ‘get . , 'getParagrafs ، ‘getPresentations. , ’getSlides ainsi que 8 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation du package Java Aspose.Slieds FOSS. Propriétés : paragrafs., presentance,, readOnly..
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
paragraphs | List<IParagraph> | Read | Builds and returns the list of paragraphs. |
readOnly | boolean | Read | Gets the read only. |
slide | IBaseSlide | Read | Gets the slide. |
presentation | IPresentation | Read | Gets the presentation. |
méthodes
| Signature | Description |
|---|---|
ParagraphCollection() | Creates an empty ParagraphCollection. |
ParagraphCollection(paragraphs: List<IParagraph>) | Creates a ParagraphCollection with the given initial paragraphs. |
initInternal(txbodyElement: Element, slidePart: Object, parentSlide: IBaseSlide) → ParagraphCollection | Initialises this collection from an OOXML text-body element. |
getParagraphs() → List<IParagraph> | Builds and returns the list of paragraphs. |
get(index: int) → IParagraph | |
size() → int | |
count() → int | Returns the number of paragraphs (alias of size) |
isReadOnly() → boolean | Returns true if read only is set. |
asISlideComponent() → ISlideComponent | Returns the collection as an ISlideComponent |
asIEnumerable() → Iterable<IParagraph> | Returns an Iterable over the paragraphs |
asIPresentationComponent() → IPresentationComponent | Returns the collection as an IPresentationComponent |
getSlide() → IBaseSlide | Returns the slide. |
getPresentation() → IPresentation | Returns the presentation. |
add(value: IParagraph) | Appends a paragraph to the end of the collection |
insert(index: int, value: IParagraph) | |
indexOf(item: IParagraph) → int | Returns the index of the given paragraph or -1 if absent |
contains(item: IParagraph) → boolean | Returns true if the collection includes the specified paragraph |
clear() | |
removeAt(index: int) | Removes the paragraph at the given index |
remove(item: IParagraph) → boolean | Deletes the specified paragraph and returns success status |
iterator() → Iterator<IParagraph> | Provides an iterator over the paragraphs |
Voir aussi
- Aspose.Slides - référence API d’entreprise