Skip to main content

BootstrapWebClientUIWidgetEx.CustomPalette Property

Sets the custom palette to be used for colorizing widgets and their elements.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

public virtual Color[] CustomPalette { get; set; }

Property Value

Type Description
Color[]

An array of colors to be used as a custom palette.

Remarks

The code snippet below demonstrates how you can use the CustomPalette property in your project.

PieChart.CustomPalette = new[ ] {
  Color.FromArgb(255, 0, 105, 191),
  Color.FromArgb(255, 165, 139, 71),
  Color.FromArgb(255, 160, 60, 127),
  Color.FromArgb(255, 112, 158, 37),
  Color.FromArgb(255, 62, 146, 216),
  Color.FromArgb(255, 194, 171, 105),
  Color.FromArgb(255, 195, 112, 168),
  Color.FromArgb(255, 149, 187, 93),
  Color.FromArgb(255, 142, 198, 239),
  Color.FromArgb(255, 224, 209, 171),
  Color.FromArgb(255, 222, 176, 207),
  Color.FromArgb(255, 194, 216, 157)
};

The following image shows the resulting chart with the custom palette applied.

BootstrapChart_CustomPalette

See Also