Back to Devexpress

ColorScaleLegend.EnableGradientScale Property

windowsforms-devexpress-dot-xtramap-dot-colorscalelegend.md

latest2.1 KB
Original Source

ColorScaleLegend.EnableGradientScale Property

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

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Remarks

The following images show the EnableGradientScale property in action.

EnableGradientScale = true :

EnableGradientScale = false :

Example

csharp
ColorScaleLegend legend = new ColorScaleLegend() {
    Header = "Seismic Density",
    EnableGradientScale = true,
    Layer = heatMapLayer
};
legend.HeaderStyle.Font = new Font("Tahoma", 12F);
mapControl1.Legends.Add(legend);
vb
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

ColorScaleLegend Class

ColorScaleLegend Members

DevExpress.XtraMap Namespace