Share via


DataGridCell.Equals(Object) 메서드

정의

DataGridCell이 두 번째 DataGridCell과 동일한지 여부를 나타내는 값을 가져옵니다.

public:
 override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

매개 변수

o
Object

비교할 개체입니다.

반환

Boolean

둘째 개체가 첫째와 같으면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서는 두 개의 비교 DataGridCell 개체입니다.

Private Sub CompareCells()
    Dim currCell As DataGridCell
    Dim cell2 As DataGridCell
 
    currCell = DataGrid1.CurrentCell
    cell2.ColumnNumber = 0
    cell2.ColumnNumber = 0
    ' This won't return true until you select row 0, column 0.
    Console.WriteLine(currCell.Equals(cell2))
 End Sub

적용 대상