ScrollBarEventArgs Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used as a parameter object in the AxisScrollBarClicked of the root Chart object.
public ref class ScrollBarEventArgs : EventArgs
public class ScrollBarEventArgs : EventArgs
type ScrollBarEventArgs = class
inherit EventArgs
Public Class ScrollBarEventArgs
Inherits EventArgs
- Inheritance
The ScrollBarEventArgs class is exposed as the e
parameter in the AxisScrollBarClicked event.
The ScrollBarEventArgs class contains the following properties:
The ChartArea property, which is used to get the ChartArea object that the event was raised for. The Name property gets the name of the chart area; other chart area properties can also be set.
The Axis property, which is used to get the Axis object that the scrollbar belongs to, using the AxisName property. Other Axis properties can also be set.
The ButtonType property, which is used to get the scrollbar button that the end-user clicked.
The IsHandled property, which determines if the Chart control cancels default behavior of the scrollbar button after the code in the AxisScrollBarClicked event completes execution.
The MousePositionX property, which represents the X position of the mouse cursor at the time the end-user clicked the scrollbar element.
The MousePositionY property, which represents the Y-position of the mouse cursor at the time the end-user clicked the scrollbar element.
Scroll |
Initializes a new instance of the ScrollBarEventArgs class with the specified axis, X and Y positions of the mouse cursor, and type of button clicked. |
Axis |
Gets the Axis object that a scrollbar belongs to. |
Button |
Gets the type of scrollbar button that the end-user clicked. |
Chart |
Gets the ChartArea object that the scrollbar belongs to. |
Is |
Gets or sets a flag that indicates whether to cancel the default behavior of specific scrollbar events. |
Mouse |
Gets the X position of the mouse cursor at the time the AxisScrollBarClicked event was raised. |
Mouse |
Gets the Y position of the mouse cursor at the time the AxisScrollBarClicked event was raised. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: