windowsforms-devexpress-dot-xtramap-dot-colorscalelegend.md
Gets or sets whether a gradient applies across a legend‘s color items.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
[DefaultValue(false)]
public bool EnableGradientScale { get; set; }
<DefaultValue(False)>
Public Property EnableGradientScale As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the gradient mode is enabled; otherwise, false.
|
The following images show the EnableGradientScale property in action.
EnableGradientScale = true :
EnableGradientScale = false :
ColorScaleLegend legend = new ColorScaleLegend() {
Header = "Seismic Density",
EnableGradientScale = true,
Layer = heatMapLayer
};
legend.HeaderStyle.Font = new Font("Tahoma", 12F);
mapControl1.Legends.Add(legend);
Dim legend As New ColorScaleLegend() With {
.Header = "Seismic Density",
.EnableGradientScale = True,
.Layer = heatMapLayer
}
legend.HeaderStyle.Font = New Font("Tahoma", 12F)
mapControl1.Legends.Add(legend)
See Also