ColorBlend 类

定义

定义用于在多色渐变中以内插值取代颜色混合的颜色和位置的数组。Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. 无法继承此类。This class cannot be inherited.

public ref class ColorBlend sealed
public sealed class ColorBlend
type ColorBlend = class
Public NotInheritable Class ColorBlend
继承
ColorBlend

构造函数

ColorBlend()

初始化 ColorBlend 类的新实例。Initializes a new instance of the ColorBlend class.

ColorBlend(Int32)

使用指定的颜色和位置的数目初始化 ColorBlend 类的新实例。Initializes a new instance of the ColorBlend class with the specified number of colors and positions.

属性

Colors

获取或设置表示在沿渐变的相应位置处使用的颜色的颜色数组。Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.

Positions

获取或设置沿渐变线的位置。Gets or sets the positions along a gradient line.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于