ScrollBarEventArgs ScrollBarEventArgs ScrollBarEventArgs ScrollBarEventArgs Class

Definition

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
ScrollBarEventArgsScrollBarEventArgsScrollBarEventArgsScrollBarEventArgs

Remarks

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.

Constructors

ScrollBarEventArgs(Axis, Int32, Int32, ScrollBarButtonType) ScrollBarEventArgs(Axis, Int32, Int32, ScrollBarButtonType) ScrollBarEventArgs(Axis, Int32, Int32, ScrollBarButtonType) ScrollBarEventArgs(Axis, Int32, Int32, ScrollBarButtonType)

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.

Properties

Axis Axis Axis Axis

Gets the Axis object that a scrollbar belongs to.

ButtonType ButtonType ButtonType ButtonType

Gets the type of scrollbar button that the end-user clicked.

ChartArea ChartArea ChartArea ChartArea

Gets the ChartArea object that the scrollbar belongs to.

IsHandled IsHandled IsHandled IsHandled

Gets or sets a flag that indicates whether to cancel the default behavior of specific scrollbar events.

MousePositionX MousePositionX MousePositionX MousePositionX

Gets the X position of the mouse cursor at the time the AxisScrollBarClicked event was raised.

MousePositionY MousePositionY MousePositionY MousePositionY

Gets the Y position of the mouse cursor at the time the AxisScrollBarClicked event was raised.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to