DataGridCell.Equals(Object) Método
Definição
Obtém um valor que indica se o DataGridCell é idêntico a um segundo DataGridCell.Gets a value indicating whether the DataGridCell is identical to a second 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
Parâmetros
- o
- Object
Um objeto que você está comparando.An object you are to comparing.
Retornos
true se o segundo objeto for idêntico ao primeiro, caso contrário, false.true if the second object is identical to the first; otherwise, false.
Exemplos
O exemplo a seguir compara dois DataGridCell objetos.The following example compares two DataGridCell objects.
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