ParagraphCollection
Vue de l’ensemble
‘ParagraphCollection’ est une classe dans Aspose.Slides FOSS pour Python.Déduit de: ‘BaseColection’, ‘IParagrafCollection’, `ISlideComponent’.
Il représente une collection de paragraphes.
Cette classe fournit 7 méthodes pour travailler avec les objets de Collections paragraph dans les programmes Python. Les méthodologies disponibles comprennent: add, clear , contains ‘index_of’, insert et remove. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation d’Aspose.Slides FOSS pour le package Pyathon. Propriétés : as_i_enumerable ; a_is_presentation_component; ass_ i_slide_conponents : compte` .
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of elements actually contained in the collection. |
is_read_only | bool | Read | Gets a value indicating whether the is read-only. |
as_i_slide_component | ISlideComponent | Read | Gets the as i slide component. |
as_i_enumerable | Any | Read | Gets the as i enumerable. |
slide | IBaseSlide | Read | Gets the slide. |
as_i_presentation_component | IPresentationComponent | Read | Gets the as i presentation component. |
presentation | IPresentation | Read | Gets the presentation. |
length | int | Read | Returns the number of elements. |
méthodes
| Signature | Description |
|---|---|
add() | Appends a new paragraph to the collection |
insert() | Inserts a paragraph at a specified index |
index_of(item) → int | Returns the zero‑based index of the given paragraph, or -1 if not found |
clear() | |
contains(item) → bool | Checks whether the specified paragraph exists in the collection |
remove_at(index) | |
remove(item) → bool |
Voir aussi
- Aspose.Slides - référence API d’entreprise