PortionCollection
Vue de l’ensemble
‘PortionCollection’ est une classe dans Aspose.Slides FOSS pour Python.Déduit de: ‘BaseColection’, ‘IPortion Collection’.
Il représente une collection de portions.
Cette classe fournit 7 méthodes pour travailler avec les objets de PortionCollection 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 du package Aspose.Slides FOSS pour Pyathon. Propriétés : as_i_enumerable ; conteure; is_read_only .
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_enumerable | Any | Read | Gets the as i enumerable. |
length | int | Read | Returns the number of elements. |
méthodes
| Signature | Description |
|---|---|
add(value) | Adds a Portion to the collection |
index_of(item) → int | Returns the zero‑based index of the specified Portion, or -1 if absent |
insert(index, value) | Inserts a Portion at the given index, shifting subsequent items |
clear() | Removes all Portion objects from the collection |
contains(item) → bool | Indicates whether the collection includes the specified Portion |
remove(item) → bool | Removes the first occurrence of the specified Portion and returns true if removed |
remove_at(index) | Removes the Portion at the specified index |
Voir aussi
- Aspose.Slides - référence API d’entreprise