[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Chart Control
   [Expand]Getting Started
   [Expand]Charting Basics
   [Expand]Series Views
   [Expand]Chart Elements
   [Expand]Providing Data
   [Expand]Data Representation
   [Collapse]Appearance Customization
     Define an Appearance for Painting All Visual Elements
     Choose a Palette for Painting Series, Points and Indicators
     Create a Custom Palette
     Prioritized Appearance and the Appearance Template
     Series Point Colorizer
     Segment Colorizers
     Custom Draw Events
   [Expand]End-User Features
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Additional Resources
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Segment Colorizers

Segment Colorizers allow you to paint segments of the LineSeriesView (see LineSeriesView), AreaSeriesView (see AreaSeriesView) and their descendants.

Expanded Overview

Segment colorizers only paint segments that form a line or area. Use the Series Point Colorizers to paint point markers.

You can use the Segment Colorizers with the following series views:

Perform the following steps to apply a segment colorizer to a series:

Tip

Demo: Segment Colorizer

Requires installation of WinForms Subscription. Download

Expanded Trend Segment Colorizer

The Trend Segment colorizer changes a line/area's color when a point value increases or decreases. You can specify the colors used to paint increasing and decreasing value segments.

The following code shows how to configure and apply the Trend Segment colorizer:

The following table lists the related API members:

Member Description
TrendSegmentColorizer (see TrendSegmentColorizer) The colorizer that changes a line's color when a point value increases or decreases.
TrendSegmentColorizer.FallingTrendColor Gets or sets the color used to draw the falling value segments.
TrendSegmentColorizer.RisingTrendColor Gets or sets the color used to draw the rising value segments.
TrendSegmentColorizer.FallingTrendLegendText Gets or sets the text the legend uses to identify the falling trend segments.
TrendSegmentColorizer.RisingTrendLegendText Gets or sets the text the legend uses to identify the rising trend segments.
LineSeriesView.SegmentColorizer Gets or sets the colorizer that colors the line view segments.

Expanded Range Segment Colorizer

The Range Segment colorizer allows you to paint line/area segments based on their value range.

The following code shows how to configure and apply the Range Segment colorizer:

The following table lists the related API members:

Member Description
RangeSegmentColorizer (see RangeSegmentColorizer) The colorizer that allows you to color a line segment based on a its value range.
RangeSegmentColorizer.RangeStops Provides access to the collection of double values that define color range boundaries.
RangeSegmentColorizer.Palette Gets or sets the palette that provides colors for the colorizer.
RangeSegmentColorizer.PaletteName Gets or sets a name of the palette that provides colors for the colorizer.
RangeSegmentColorizer.LegendItemPattern Gets or sets the pattern to format the text the legend shows for a color range.
RangeSegmentColorizer.ShowInLegend Gets or sets the value whether to show the colorizer items in the legend.
LineSeriesView.SegmentColorizer Gets or sets the colorizer that colors the line view segments.

Expanded Point Based Segment Colorizer

The Point Based Segment Colorizer paints line/area segments into the point marker colors. Use a Series Point Colorizer or specify the SeriesPoint.Color property directly to provide markers with colors.

The following code shows how to configure and apply the Point Based Segment colorizer:

The following table lists the related API members:

Member Description
PointBasedSegmentColorizer (see PointBasedSegmentColorizer) The colorizer that uses the point marker colors to paint line/area segments.
PointBasedSegmentColorizer.Direction Gets or sets the direction that is used to distribute the point marker color.
ColorDistributionDirection (see ColorDistributionDirection) Lists values that define the direction used by point markers to distribute a color among segments.
LineSeriesView.SegmentColorizer Gets or sets the colorizer that colors the line view segments.

Expanded See Also

Is this topic helpful?​​​​​​​