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

비교할 개체입니다.

반품

두 번째 개체가 첫 번째 개체와 같으면 이고, 그렇지 않으면 .

예제

다음 예제에서는 두 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

적용 대상