PortionCollection

PortionCollection

Vue d’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

NameTypeAccessDescription
countintReadGets the number of elements actually contained in the collection.
is_read_onlyboolReadGets a value indicating whether the is read-only.
as_i_enumerableAnyReadGets the as i enumerable.
lengthintReadReturns the number of elements.

méthodes

SignatureDescription
add(value)Adds a Portion to the collection
index_of(item) → intReturns 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) → boolIndicates whether the collection includes the specified Portion
remove(item) → boolRemoves 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
 Français