IGradientStopCollection

IGradientStopCollection 接口

表示渐变停止的集合。

public interface IGradientStopCollection : IGenericCollection<IGradientStop>

属性

名称描述
Item { get; }根据索引返回渐变停止。

方法

名称描述
Add(float, Color)创建新的渐变停止并将其添加到集合的末尾。
Add(float, PresetColor)创建新的渐变停止并将其添加到集合的末尾。
Add(float, SchemeColor)创建新的渐变停止并将其添加到集合的末尾。
Clear()从集合中移除所有渐变停止。
Insert(int, float, Color)创建新的渐变停止并将其插入到指定索引的集合中。
Insert(int, float, PresetColor)创建新的渐变停止并将其插入到指定索引的集合中。
Insert(int, float, SchemeColor)创建新的渐变停止并将其插入到指定索引的集合中。
RemoveAt(int)移除指定索引处的渐变停止。

参见