wpf-devexpress-dot-xpf-dot-charts-dot-chartcontrol-a24fad3e.md
Occurs before a series is drawn when the chart’s contents are being drawn.
Namespace : DevExpress.Xpf.Charts
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public event CustomDrawSeriesEventHandler CustomDrawSeries
Public Event CustomDrawSeries As CustomDrawSeriesEventHandler
The CustomDrawSeries event's data class is CustomDrawSeriesEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| DrawOptions | Gets the settings for custom drawing series of different view types. |
| Handled | Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs. |
| LegendText | Gets or sets the Legend’s text for the series whose points are currently being painted. |
| OriginalSource | Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs. |
| Series | Gets the series whose points are currently being painted. |
| Source | Gets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs. |
The event data class exposes the following methods:
| Method | Description |
|---|---|
| InvokeEventHandler(Delegate, Object) | When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation. Inherited from RoutedEventArgs. |
| OnSetSource(Object) | When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. Inherited from RoutedEventArgs. |
The CustomDrawSeries event is raised before every series is painted. The event parameter’s CustomDrawSeriesEventArgs.Series property provides the series whose specific series options are to be determined. And the CustomDrawSeriesEventArgs.DrawOptions property provides the drawing options specific to each series.
The CustomDrawSeries and ChartControl.CustomDrawSeriesPoint events are always raised in the following order.
See Also