Chart customize event handler delegate.
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- sender
-
The source of the event which is always the root Chart object.
The following sample increases the Maximum and Minimum properties of the primary X-axis scale. The maximum is increased by 1 and the minimum is decreased by 1.
Visual Basic | Copy Code |
---|---|
Imports Dundas.Charting.WebControl<CRLF>...<CRLF><CRLF>'Customize event handler<CRLF>Private Sub Chart1_Customize(ByVal chart As Chart) Handles Chart1.Customize <CRLF><CRLF> ' adjust X axis scale <CRLF> Chart1.ChartAreas("Default").AxisX.Maximum += 1.0 <CRLF> Chart1.ChartAreas("Default").AxisX.Minimum -= 1.0<CRLF><CRLF>End Sub<CRLF>... |
The Customize event is raised just prior to the chart being drawn. All data is available, and all properties, including those set to "Auto", have been calculated (i.e. contain the real, calculated values).
The declaration of your event handler must have the same parameters as the CustomizeEventHandler delegate declaration.
When you create a CustomizeEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family