All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ColorScaleLegend.EnableGradientScale Property

Gets or sets whether a gradient applies across a legend's color items.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

[DefaultValue(false)]
public bool EnableGradientScale { get; set; }
<DefaultValue(False)>
Public Property EnableGradientScale As Boolean

Property Value

Type Default Description
Boolean

false

true, if the gradient mode is enabled; otherwise, false.

Remarks

The following images show the EnableGradientScale property in action.

EnableGradientScale = true:

EnableGradientScale = false:

Example

ColorScaleLegend legend = new ColorScaleLegend() {
    Header = "Seismic Density",
    EnableGradientScale = true,
    Layer = heatMapLayer
};
legend.HeaderStyle.Font = new Font("Tahoma", 12F);
mapControl1.Legends.Add(legend);
See Also