DataGridViewCellStateChangedEventArgs DataGridViewCellStateChangedEventArgs DataGridViewCellStateChangedEventArgs DataGridViewCellStateChangedEventArgs Class

정의

CellStateChanged 이벤트에 대한 데이터를 제공합니다.Provides data for the CellStateChanged event.

public ref class DataGridViewCellStateChangedEventArgs : EventArgs
public class DataGridViewCellStateChangedEventArgs : EventArgs
type DataGridViewCellStateChangedEventArgs = class
    inherit EventArgs
Public Class DataGridViewCellStateChangedEventArgs
Inherits EventArgs
상속
DataGridViewCellStateChangedEventArgsDataGridViewCellStateChangedEventArgsDataGridViewCellStateChangedEventArgsDataGridViewCellStateChangedEventArgs

예제

다음 코드 예제에서는이 형식의 사용을 보여 줍니다.The following code example illustrates the use of this type.

private void dataGridView1_CellStateChanged(object sender,
    DataGridViewCellStateChangedEventArgs e)
{
    DataGridViewElementStates state = e.StateChanged;
    string msg = String.Format("Row {0}, Column {1}, {2}",
        e.Cell.RowIndex, e.Cell.ColumnIndex, e.StateChanged);
    MessageBox.Show(msg, "Cell State Changed");
}
Private Sub dataGridView1_CellStateChanged(ByVal sender As Object, _
    ByVal e As DataGridViewCellStateChangedEventArgs) _
    Handles dataGridView1.CellStateChanged

    Dim state As DataGridViewElementStates = e.StateChanged
    Dim msg As String = String.Format( _
        "Row {0}, Column {1}, {2}", _
        e.Cell.RowIndex, e.Cell.ColumnIndex, e.StateChanged)
    MessageBox.Show(msg, "Cell State Changed")

End Sub

설명

사용 된 Cell 셀 변경 확인 하는 속성입니다.Use the Cell property to determine which cell changed. 사용 된 StateChanged 셀 상태를 확인 하려면 속성 변경 합니다.Use the StateChanged property to determine which cell state changed.

이벤트를 처리 하는 방법에 대 한 자세한 내용은 참조 하세요. 이벤트 처리 및 발생합니다.For more information about how to handle events, see Handling and Raising Events.

생성자

DataGridViewCellStateChangedEventArgs(DataGridViewCell, DataGridViewElementStates) DataGridViewCellStateChangedEventArgs(DataGridViewCell, DataGridViewElementStates) DataGridViewCellStateChangedEventArgs(DataGridViewCell, DataGridViewElementStates) DataGridViewCellStateChangedEventArgs(DataGridViewCell, DataGridViewElementStates)

DataGridViewCellStateChangedEventArgs 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the DataGridViewCellStateChangedEventArgs class.

속성

Cell Cell Cell Cell

상태가 변경된 DataGridViewCell을 가져옵니다.Gets the DataGridViewCell that has a changed state.

StateChanged StateChanged StateChanged StateChanged

셀에서 변경된 상태를 가져옵니다.Gets the state that has changed on the cell.

메서드

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

기본 해시 함수로 작동합니다.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object.

(Inherited from Object)

적용 대상

추가 정보