Share via


GradientBrush.GradientStops 属性

定义

获取或设置画笔的渐变停止点。

public:
 property GradientStopCollection ^ GradientStops { GradientStopCollection ^ get(); void set(GradientStopCollection ^ value); };
GradientStopCollection GradientStops();

void GradientStops(GradientStopCollection value);
public GradientStopCollection GradientStops { get; set; }
var gradientStopCollection = gradientBrush.gradientStops;
gradientBrush.gradientStops = gradientStopCollection;
Public Property GradientStops As GradientStopCollection
<gradientBrush>
  oneOrMoreGradientStops
</gradientBrush>

属性值

与画笔关联的 GradientStop 对象的集合,其中每个对象指定沿画笔渐变轴的颜色和偏移量。 默认值为空 GradientStopCollection

适用于