HandledEventArgs 类

定义

为可在事件处理程序中完整处理的事件提供数据。Provides data for events that can be handled completely in an event handler.

public ref class HandledEventArgs : EventArgs
public class HandledEventArgs : EventArgs
type HandledEventArgs = class
    inherit EventArgs
Public Class HandledEventArgs
Inherits EventArgs
继承
HandledEventArgs
派生

注解

通常, 在事件处理程序Handled中设置属性的值, 以指示系统应不执行进一步处理。Typically, the value of the Handled property is set in an event handler to indicate that the system should perform no further processing.

DataGridViewCellPaintingEventArgs此类是类型DataGridViewRowPrePaintEventArgs DataGridViewRowHeightInfoPushedEventArgs(如、、和DataGridViewSortCompareEventArgs类) 的基类。This class is a base class for types such as the DataGridViewCellPaintingEventArgs, DataGridViewRowPrePaintEventArgs, DataGridViewRowHeightInfoPushedEventArgs, and DataGridViewSortCompareEventArgs classes.

构造函数

HandledEventArgs()

HandledEventArgs 属性的默认值 false 初始化 Handled 类的新实例。Initializes a new instance of the HandledEventArgs class with a default Handled property value of false.

HandledEventArgs(Boolean)

HandledEventArgs 属性的指定默认值初始化 Handled 类的新实例。Initializes a new instance of the HandledEventArgs class with the specified default value for the Handled property.

属性

Handled

获取或设置一个值,该值指示事件处理程序是否已完整处理事件,或者系统是否应该继续本身的处理。Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing.

方法

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)

适用于

另请参阅