DataGrid::HitTestInfo::GetHashCode Method ()
.NET Framework (current version)
Gets the hash code for the DataGrid::HitTestInfo instance.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
This method overrides GetHashCode.
The following example prints the hash code of the DataGrid::HitTestInfo.
private: void dataGrid1_MouseDown( Object^ /*sender*/, System::Windows::Forms::MouseEventArgs^ e ) { String^ newLine = "\n"; Console::WriteLine( newLine ); System::Windows::Forms::DataGrid::HitTestInfo^ myHitTest; // Use the DataGrid control's HitTest method with the x and y properties. myHitTest = dataGrid1->HitTest( e->X, e->Y ); Console::WriteLine( "Hashcode {0}", myHitTest->GetHashCode() ); }
.NET Framework
Available since 1.1
Available since 1.1
Show: