SeriesStyleSelector Class
Provides a way to apply series styles based on custom logic.
[TypeConverter(typeof(SeriesStyleSelectorConverter))]
public class SeriesStyleSelector : ISeriesStyleSelector
- Inheritance:
- object object
- Implements:
- ISeriesStyleSelector
Constructors
SeriesStyleSelector()
Initializes an instance of the class.
public SeriesStyleSelector()
Methods
SelectAreaStyle(SeriesBase, Style)
Returns the area Style to use for the specified series.
public virtual Style SelectAreaStyle(SeriesBase series, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
series | SeriesBase | The series to examine. |
defaultStyle | Style | The default Style to use. |
Returns
SelectBarStyle(SeriesBase, int, int, Style)
Returns the bar Style to use for the specified series.
public virtual Style SelectBarStyle(SeriesBase series, int barIndex, int barCount, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
series | SeriesBase | The series to examine. |
barIndex | int | The zero-based index of the bar. |
barCount | int | The number of bars. |
defaultStyle | Style | The default Style to use. |
Returns
SelectLegendMarkerStyle(XYSeriesBase, Style)
Returns the legend marker Style to use for the specified series.
public virtual Style SelectLegendMarkerStyle(XYSeriesBase series, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
series | XYSeriesBase | The series to examine. |
defaultStyle | Style | The default Style to use. |
Returns
SelectLineStyle(SeriesBase, Style)
Returns the line Style to use for the specified series.
public virtual Style SelectLineStyle(SeriesBase series, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
series | SeriesBase | The series to examine. |
defaultStyle | Style | The default Style to use. |
Returns
SelectMarkerStyle(SeriesBase, Style)
Returns the marker Style to use for the specified series.
public virtual Style SelectMarkerStyle(SeriesBase series, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
series | SeriesBase | The series to examine. |
defaultStyle | Style | The default Style to use. |