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是類型的基類, 例如、 DataGridViewRowPrePaintEventArgsDataGridViewRowHeightInfoPushedEventArgsDataGridViewSortCompareEventArgs類別。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()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱