Dundas Chart for ASP.NET
ViewEventArgs Class
Members  See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace : ViewEventArgs Class


This class is used as a parameter object in the AxisViewChanged and AxisViewChanging events of the root Chart object.
Axis data view position/size changing event arguments.

Object Model



Syntax

Visual Basic (Declaration)  
Public Class ViewEventArgs 
   Inherits EventArgs
Visual Basic (Usage) Copy Code
Dim instance As ViewEventArgs
C#  
public class ViewEventArgs : EventArgs 

Remarks

This class is exposed as the e parameter in the AxisViewChanged and AxisViewChanging events.  The AxisViewChanging event is raised just prior to a new view being displayed (as a result of the end-user clicking and dragging in a chart area), while the AxisViewChanged event is raised just after the new view is created. 

It is important to not that the position and size of a view cannot be set in the AxisViewChanged event, since the view is already created.

The properties of ViewEventArgs are:

  • the ChartArea property, used to get the ChartArea object the view is being displayed in.  The ChartArea.Name property gets the name of the chart area, and other chart area properties can also be set.
  • the Axis property, used to get the Axis object the view is associated with.  To determine the type of axis use the Axis.Type property (i.e. X, X2, Y and Y2). Other axis properties can also be set.
  • the NewPosition property, which represents the new position of a view.
  • the NewSize property, which represents the new size of a view.
  • the NewSizeType property, which represents the unit of measurement for the size of a view.

Inheritance Hierarchy

System.Object
   System.EventArgs
      Dundas.Charting.WebControl.ViewEventArgs

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.