ScrollBarEventArgs 类

定义

用作根 AxisScrollBarClicked 对象的 Chart 中的参数对象。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
继承
ScrollBarEventArgs

注解

类作为事件AxisScrollBarClicked中的e参数公开。 ScrollBarEventArgsThe ScrollBarEventArgs class is exposed as the e parameter in the AxisScrollBarClicked event.

ScrollBarEventArgs类包含以下属性:The ScrollBarEventArgs class contains the following properties:

  • 属性, 用于ChartArea获取引发事件的对象。 ChartAreaThe ChartArea property, which is used to get the ChartArea object that the event was raised for. Name属性获取图表区的名称; 也可以设置其他图表区属性。The Name property gets the name of the chart area; other chart area properties can also be set.

  • 用于获取滚动条AxisName所属的Axis对象的属性, 使用属性。 AxisThe Axis property, which is used to get the Axis object that the scrollbar belongs to, using the AxisName property. Axis可以设置其他属性。Other Axis properties can also be set.

  • 用于获取最终用户单击的滚动条按钮的属性。ButtonTypeThe ButtonType property, which is used to get the scrollbar button that the end-user clicked.

  • 属性, 确定Chart控件在AxisScrollBarClicked事件中的代码完成执行后是否取消滚动条按钮的默认行为。 IsHandledThe IsHandled property, which determines if the Chart control cancels default behavior of the scrollbar button after the code in the AxisScrollBarClicked event completes execution.

  • MousePositionX属性, 表示最终用户单击滚动条元素时鼠标光标的 X 位置。The MousePositionX property, which represents the X position of the mouse cursor at the time the end-user clicked the scrollbar element.

  • MousePositionY属性, 表示最终用户单击滚动条元素时鼠标光标的 Y 位置。The MousePositionY property, which represents the Y-position of the mouse cursor at the time the end-user clicked the scrollbar element.

构造函数

ScrollBarEventArgs(Axis, Int32, Int32, ScrollBarButtonType)

用指定的轴、鼠标光标的 X 轴和 Y 轴位置以及所单击按钮的类型初始化 ScrollBarEventArgs 类的新实例。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

获取滚动条所属的 Axis 对象。Gets the Axis object that a scrollbar belongs to.

ButtonType

获取最终用户单击的滚动条按钮的类型。Gets the type of scrollbar button that the end-user clicked.

ChartArea

获取滚动条所属的 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

获取引发 AxisScrollBarClicked 事件时鼠标光标的 X 轴位置。Gets the X position of the mouse cursor at the time the AxisScrollBarClicked event was raised.

MousePositionY

获取引发 AxisScrollBarClicked 事件时鼠标光标的 Y 轴位置。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.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于