语言

LinearGradientBrush.InterpolationColors 属性

定义

获取或设置定义多色线性渐变的一个 ColorBlend 。

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

属性值

定义多色线性渐变的 A ColorBlend 。

注解

一个 ColorBlend 包含相应的颜色和位置数组。 位置是介于 0 到 1 之间的值,用于指定相应颜色所在的渐变线的距离百分比。

设置此属性将创建一个多色渐变,该渐变在渐变线的每个位置都有一种颜色。 设置此属性将为此设置将所有以前的颜色、位置和倒退设置都 LinearGradientBrush为 null。

适用于