ColorBlend ColorBlend ColorBlend ColorBlend Class

定义

定义用于在多色渐变中以内插值取代颜色混合的颜色和位置的数组。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
继承
ColorBlendColorBlendColorBlendColorBlend

构造函数

ColorBlend() ColorBlend() ColorBlend() ColorBlend()

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

ColorBlend(Int32) ColorBlend(Int32) ColorBlend(Int32) ColorBlend(Int32)

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

属性

Colors Colors Colors Colors

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

Positions Positions Positions Positions

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

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

适用于