GradientStopCollection

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。

属性

名称类型访问描述
AsICollectionIList<IGradientStop>读取获取 as i 集合。
AsIEnumerableIEnumerable<IGradientStop>读取获取该对象作为 IEnumerable。
Countint读取获取计数。
AsIPresentationComponentIPresentationComponent读取获取 as i 演示组件。
SlideIBaseSlide?读取获取幻灯片。
PresentationIPresentation?读取获取表示。

方法

签名描述
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()返回用于遍历渐变停靠点的枚举器

另请参阅

 中文