Dundas Chart for ASP.NET
CustomizeEventHandler Delegate
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace : CustomizeEventHandler Delegate


sender

The source of the event which is always the root Chart object.

Enterprise Edition Only Feature. Represents the method that will handle the Customize event of the Chart control.
Chart customize event handler delegate.

Syntax

Visual Basic (Declaration)  
Public Delegate Sub CustomizeEventHandler( _
   ByVal sender As Chart _
) 
Visual Basic (Usage) Copy Code
Dim instance As New CustomizeEventHandler(AddressOf HandlerMethod)
C#  
public delegate void CustomizeEventHandler( 
   Chart sender
)

Parameters

sender

The source of the event which is always the root Chart object.

Example

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>...

Remarks

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.

Requirements

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

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.