BehaviorCollection
BehaviorCollection
概述
BehaviorCollection 是 Aspose.Slides FOSS 中用于 Python 的类。继承自:BaseCollection,IBehaviorCollection。
表示行为效果的集合。
此类提供 10 个方法,用于在 Python 程序中处理 BehaviorCollection 对象。可用的方法包括:add、as_i_enumerable、clear、contains、copy_to、count、index_of、insert、remove、remove_at。所有公共成员在安装 Aspose.Slides FOSS for Python 包后,可供任何 Python 应用程序访问。属性:as_i_enumerable、count、is_read_only、length。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
count | int | 读取 | 获取计数。 |
is_read_only | bool | 读取 | 获取是否为只读。 |
as_i_enumerable | Any | 读取 | 获取 as i 可枚举。 |
length | int | 读取 | 返回元素的数量。 |
方法
| 签名 | 描述 |
|---|---|
add(item) | 将指定的行为项添加到集合中 |
index_of(item) → int | 返回给定行为项的从零开始的索引 |
insert(index, item) | 在集合中指定的索引处插入行为项 |
copy_to(array, array_index) | 将集合元素复制到提供的数组中,起始位置为 array_index |
remove(item) → bool | 删除指定的行为项,成功时返回 True |
remove_at(index) | 移除给定索引处的行为项 |
clear() | 从集合中移除所有行为项 |
contains(item) → bool | 返回一个布尔值,指示指定的行为是否存在于集合中 |
count() → int | 返回集合中行为的数量。 |
as_i_enumerable() → Any | 返回 IEnumerable 接口。 |