DataGridViewElement 類別

定義

DataGridView 控制項的項目提供基底類別。Provides the base class for elements of a DataGridView control.

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

備註

.NET Framework 提供兩個衍生自DataGridViewElement的特殊類別: DataGridViewCell(代表個別專案) 和DataGridViewBand(代表一系列群組子項目)。The .NET Framework supplies two specialized classes that derive from DataGridViewElement: DataGridViewCell, which represents individual elements, and DataGridViewBand, which represents a series of grouped subelements.

建構函式

DataGridViewElement()

初始化 DataGridViewElement 類別的新執行個體。Initializes a new instance of the DataGridViewElement class.

屬性

DataGridView

取得與這個項目有關聯的 DataGridView 控制項。Gets the DataGridView control associated with this element.

State

取得此項目的使用者介面 (UI) 狀態。Gets the user interface (UI) state of the element.

方法

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)
OnDataGridViewChanged()

當此項目與不同的 DataGridView 有關聯時呼叫。Called when the element is associated with a different DataGridView.

RaiseCellClick(DataGridViewCellEventArgs)

引發 CellClick 事件。Raises the CellClick event.

RaiseCellContentClick(DataGridViewCellEventArgs)

引發 CellContentClick 事件。Raises the CellContentClick event.

RaiseCellContentDoubleClick(DataGridViewCellEventArgs)

引發 CellContentDoubleClick 事件。Raises the CellContentDoubleClick event.

RaiseCellValueChanged(DataGridViewCellEventArgs)

引發 CellValueChanged 事件。Raises the CellValueChanged event.

RaiseDataError(DataGridViewDataErrorEventArgs)

引發 DataError 事件。Raises the DataError event.

RaiseMouseWheel(MouseEventArgs)

引發 MouseWheel 事件。Raises the MouseWheel event.

ToString()

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

(繼承來源 Object)

適用於

另請參閱