GradientStopCollection
概述
GradientStopCollection 是 Aspose.Slides FOSS 中用于 .NET 的一个类。继承自:PVIObject、IGradientStopCollection、IEnumerable<IGradientStop>。
管理位于 <a:gsLst> XML 元素中的一组 <a:gs> 子元素。
此类提供 9 种方法,用于在 .NET 程序中操作 GradientStopCollection 对象。可用的方法包括:Add、Clear、GetEnumerator、Insert、RemoveAt。在安装了 Aspose.Slides FOSS for .NET 包之后,所有公共成员对任何 .NET 应用程序均可访问。属性:AsICollection、AsIEnumerable、AsIPresentationComponent、Count、Presentation、Slide。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
AsICollection | IList<IGradientStop> | 读取 | 获取 as i 集合。 |
AsIEnumerable | IEnumerable<IGradientStop> | 读取 | 获取该对象作为 IEnumerable。 |
Count | int | 读取 | 获取计数。 |
AsIPresentationComponent | IPresentationComponent | 读取 | 获取 as i 演示组件。 |
Slide | IBaseSlide? | 读取 | 获取幻灯片。 |
Presentation | IPresentation? | 读取 | 获取表示。 |
方法
| 签名 | 描述 |
|---|---|
Add(position: float, color: Color) | 使用颜色在给定位置添加一个渐变停靠点 |
Add(position: float, presetColor: PresetColor) | 在此 GradientStopCollection 实例上调用 Add(position, presetColor)。 |
Add(position: float, schemeColor: SchemeColor) | 在此 GradientStopCollection 实例上调用 Add(position, schemeColor)。 |
Insert(index: int, position: float, color: Color) | 在 index 处插入一个具有 position 和 Color 的渐变停止点。 |
Insert(index: int, position: float, presetColor: PresetColor) | 在此 GradientStopCollection 实例上调用 Insert(index, position, presetColor)。 |
Insert(index: int, position: float, schemeColor: SchemeColor) | 在此 GradientStopCollection 实例上调用 Insert(index, position, schemeColor)。 |
RemoveAt(index: int) | 移除指定索引处的渐变停靠点 |
Clear() | 从集合中移除所有渐变停靠点 |
GetEnumerator() | 返回用于遍历渐变停靠点的枚举器 |