GradientStopCollection

GradientStopCollection class

表示一个渐变停止的集合。

public sealed class GradientStopCollection : PVIObject, IGradientStopCollection

Properties

NameDescription
AsIPresentationComponent { get; }允许获取基础的 IPresentationComponent 接口。只读 IPresentationComponent
Count { get; }返回集合中渐变停止的数量。只读 Int32。
IsSynchronized { get; }返回一个值,指示对集合的访问是否是同步的(线程安全)。只读 Boolean。
Item { get; }根据索引返回渐变停止。
SyncRoot { get; }返回一个同步根。只读 Object。

Methods

NameDescription
Add(float, Color)创建新的渐变停止并将其添加到集合的末尾。
Add(float, PresetColor)创建新的渐变停止并将其添加到集合的末尾。
Add(float, SchemeColor)创建新的渐变停止并将其添加到集合的末尾。
Clear()从集合中移除所有渐变停止。
CopyTo(Array, int)将集合中的所有元素复制到指定数组。
override Equals(object)与指定对象进行比较。
GetEnumerator()返回一个迭代器,用于遍历集合。
override GetHashCode()返回哈希码。
Insert(int, float, Color)创建新的渐变停止并插入到指定索引的集合中。
Insert(int, float, PresetColor)创建新的渐变停止并插入到指定索引的集合中。
Insert(int, float, SchemeColor)创建新的渐变停止并插入到指定索引的集合中。
RemoveAt(int)在指定索引处移除一个渐变停止。

See Also