GradientStopCollection

GradientStopCollection

概述

GradientStopCollection 是 Aspose.Words FOSS 中用于 .NET 的类。继承自:IEnumerable<GradientStop>。

包含一个 GradientStop 对象集合。

此类提供 5 种方法,用于在 .NET 程序中处理 GradientStopCollection 对象。可用的方法包括:Add、GetEnumerator、Insert、Remove、RemoveAt。在安装了 Aspose.Words FOSS for .NET 包之后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count。

属性

名称类型访问描述
Countint读取获取一个整数值,表示集合中的项目数量。

方法

签名描述
Insert(index: int, gradientStop: GradientStop)在指定索引处向集合中插入一个 GradientStop。
Add(gradientStop: GradientStop)向渐变中添加指定的 GradientStop。
RemoveAt(index: int)在指定索引处从集合中移除一个GradientStop。
Remove(gradientStop: GradientStop)从集合中移除指定的GradientStop。
GetEnumerator()返回一个用于遍历集合的枚举器。

另请参阅

 中文