LinearGradientBrush.InterpolationColors 属性

定义

获取或设置一个定义多色线性渐变的 ColorBlendGets or sets a ColorBlend that defines a multicolor linear gradient.

public:
 property System::Drawing::Drawing2D::ColorBlend ^ InterpolationColors { System::Drawing::Drawing2D::ColorBlend ^ get(); void set(System::Drawing::Drawing2D::ColorBlend ^ value); };
public System.Drawing.Drawing2D.ColorBlend InterpolationColors { get; set; }
member this.InterpolationColors : System.Drawing.Drawing2D.ColorBlend with get, set
Public Property InterpolationColors As ColorBlend

属性值

ColorBlend

一个 ColorBlend,定义多色线性渐变。A ColorBlend that defines a multicolor linear gradient.

注解

ColorBlend包含颜色和位置的相应数组。A ColorBlend contains corresponding arrays of colors and positions. 位置是0到1之间的值,用于指定沿相对颜色所在的渐变线的距离的百分比。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. 设置此属性将 nullifies 此的所有以前的颜色、位置和过渡设置 LinearGradientBrushSetting this property nullifies all previous color, position, and falloff settings for this LinearGradientBrush.

适用于