LinearGradientBrush::InterpolationColors Property

 

Gets or sets a ColorBlend that defines a multicolor linear gradient.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public:
property ColorBlend^ InterpolationColors {
	ColorBlend^ get();
	void set(ColorBlend^ value);
}

Property Value

Type: System.Drawing.Drawing2D::ColorBlend^

A ColorBlend that defines a multicolor linear gradient.

A ColorBlend contains corresponding arrays of colors and positions. The positions are values from 0 through 1 that specify the percentage of the distance along the gradient line where the corresponding color is located.

Setting this property creates a multicolor gradient with one color at each position along the gradient line. Setting this property nullifies all previous color, position, and falloff settings for this LinearGradientBrush.

.NET Framework
Available since 1.1
Return to top
Show: