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

Объект, подлежащий сравнению.

Возвращаемое значение

Значение 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

Применяется к