Back to Devexpress

TrendSegmentColorizer.FallingTrendLegendText Property

corelibraries-devexpress-dot-xtracharts-dot-trendsegmentcolorizer-57d68445.md

latest3.4 KB
Original Source

TrendSegmentColorizer.FallingTrendLegendText Property

Gets or sets the text the legend uses to identify the falling trend segments.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public string FallingTrendLegendText { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property FallingTrendLegendText As String

Property Value

TypeDescription
String

The text the legend shows for the falling trend colorizer legend item.

|

Example

This example demonstrates how to use the TrendSegmentColorizer to color a line series by its segments.

csharp
TrendSegmentColorizer colorizer = new TrendSegmentColorizer();
colorizer.FallingTrendColor = Color.RoyalBlue;
colorizer.RisingTrendColor = Color.Firebrick;
colorizer.FallingTrendLegendText = "Temperature Decrease";
colorizer.RisingTrendLegendText = "Temperature Rise";
colorizer.ShowInLegend = true;
LineSeriesView lineSeriesView = chartControl.Series[0].View as LineSeriesView;
lineSeriesView.SegmentColorizer = colorizer;
vb
Dim colorizer As TrendSegmentColorizer = New TrendSegmentColorizer
colorizer.FallingTrendColor = Color.RoyalBlue
colorizer.RisingTrendColor = Color.Firebrick
colorizer.FallingTrendLegendText = "Temperature Decrease"
colorizer.RisingTrendLegendText = "Temperature Rise"
colorizer.ShowInLegend = true
Dim lineSeriesView As LineSeriesView = CType(chartControl.Series(0).View,LineSeriesView)
lineSeriesView.SegmentColorizer = colorizer

See Also

TrendSegmentColorizer Class

TrendSegmentColorizer Members

DevExpress.XtraCharts Namespace