Class Blend

Blend class

Defines a blend pattern. This class cannot be inherited.

public sealed class Blend


Blend()Initializes a new instance of the Blend class. The number of elements in the factor and blend arrays will be equal to 1.
Blend(int)Initializes a new instance of the Blend class with the specified number of factors and positions.


Factors { get; set; }Gets or sets the array of blend factors for the gradient.
Positions { get; set; }Gets or sets the array of blend positions for the gradient.


override Equals(object)Tests whether the specified object is a Blend class and is equivalent to this Blend class.
override GetHashCode()Returns a hash code for this instance.


The typical blend class usage is defining a blend pattern for brush. And thus the blend properties should be initialized carefully. Null arrays are not allowed. The brush will throw the appropriate exception if blend factors or positions array are empty or their length is not the same. If there are two or more elements in the positions array then the first element should be 0 and the last should be 1.

See Also