语言

Chart.ApplyPaletteColors 方法

定义

设置自动分配的序列和数据点颜色,以允许在运行时进行编程访问。

public:
 void ApplyPaletteColors();
public void ApplyPaletteColors();
member this.ApplyPaletteColors : unit -> unit
Public Sub ApplyPaletteColors ()

注解

Chart当在运行时自动分配颜色时,无法知道图表呈现之前的颜色是什么;Color自动赋值的属性将在此时间返回Empty。

如果调用 ApplyPaletteColors 该方法,将设置序列和数据点的颜色,以便进行编程访问。

适用于