Redigera

Dela via


Chart.Customize Event

Definition

Occurs just before the chart image is drawn. All chart data is available and all chart properties have been set.

public:
 event EventHandler ^ Customize;
public event EventHandler Customize;
member this.Customize : EventHandler 
Public Custom Event Customize As EventHandler 

Event Type

Remarks

This event has two unique features:

  • All chart data is available; that is, the series and their data points are populated. This is especially useful if data-binding is being used, because the data can be examined and the chart can be adjusted just prior to being drawn.

  • All chart properties have been set, including those properties that have been set to "Auto". In other words, "Auto" properties now store the automatically calculated values, and can be examined and modified prior to the chart being drawn. Examples are the Minimum and Maximum properties of the Axis class.

Use this event to modify or customize the chart image before it is drawn.

When changes are made to a chart area, such as to the axis scale, the chart area properties must be recalculated in order to render the chart correctly. To recalculate the chart, call the RecalculateAxesScale method after making modifications.

Applies to