DataGridViewElement 類別

定義

提供控制項元素 DataGridView 的基底類別。

public ref class DataGridViewElement
public class DataGridViewElement
type DataGridViewElement = class
Public Class DataGridViewElement
繼承
DataGridViewElement
衍生

備註

.NET 框架提供兩個專門類別,分別源自 DataGridViewElementDataGridViewCell,代表單一元素,以及 DataGridViewBand,代表一系列分組的子元素。

建構函式

名稱 Description
DataGridViewElement()

初始化 DataGridViewElement 類別的新執行個體。

屬性

名稱 Description
DataGridView

取得 DataGridView 與此元素相關的控制權。

State

取得該元素的使用者介面(UI)狀態。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
OnDataGridViewChanged()

當該元素與另一個 DataGridView有關聯時,稱為 。

RaiseCellClick(DataGridViewCellEventArgs)

引發 CellClick 事件。

RaiseCellContentClick(DataGridViewCellEventArgs)

引發 CellContentClick 事件。

RaiseCellContentDoubleClick(DataGridViewCellEventArgs)

引發 CellContentDoubleClick 事件。

RaiseCellValueChanged(DataGridViewCellEventArgs)

引發 CellValueChanged 事件。

RaiseDataError(DataGridViewDataErrorEventArgs)

引發 DataError 事件。

RaiseMouseWheel(MouseEventArgs)

引發 MouseWheel 事件。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱