Assembly: System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)
Initializes a new instance of the T:System.Windows.Forms.DataVisualization.ViewEventArgs class with the specified axis and newPosition parameters.
|ViewEventArgs(Axis, Double, Double, DateTimeIntervalType)|
Initializes a new instance of the T:System.Windows.Forms.DataVisualization.ViewEventArgs class with the specified axis, newPosition, newSize and newSizeType parameters.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
This class is exposed as the e parameter in the AxisViewChanged and AxisViewChanging events. The AxisViewChanging event is raised just before a new view is displayed, as a result of the end-user clicking and dragging in a chart area. The AxisViewChanged event is raised just after the new view is created.
It is important to note that the position and size of a view cannot be set in the AxisViewChanged event because in this case the view is already created.
Theclass contains the following properties:
The Axis property, which is used to get the Axis object with which the view is associated. To determine the type of axis, which can be X, Y, X2 or Y2, use the AxisName property. 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.
Available since 4.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.