DataGridCell.Equals(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- o
- Object
An object you are to comparing.
Returns
true
if the second object is identical to the first; otherwise, false
.
Examples
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
Applies to
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de