Redigera

Dela via


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
ScrollBarEventArgs

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)

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

Gets the Axis object that a scrollbar belongs to.

ButtonType

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

ChartArea

Gets the ChartArea object that the scrollbar belongs to.

IsHandled

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

MousePositionX

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

MousePositionY

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

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to