Font.GetHashCode メソッド
アセンブリ: System.Drawing (system.drawing.dll 内)

Dim instance As Font Dim returnValue As Integer returnValue = instance.GetHashCode
この Font のハッシュ コード。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
Public Sub GetHashCode_Example(ByVal e As PaintEventArgs) ' Create a Font object. Dim myFont As New Font("Arial", 16) ' Get the hash code for myFont. Dim hashCode As Integer = myFont.GetHashCode() ' Display the hash code in a message box. MessageBox.Show(hashCode.ToString()) End Sub
public void GetHashCode_Example(PaintEventArgs e) { // Create a Font object. Font myFont = new Font("Arial", 16); // Get the hash code for myFont. int hashCode = myFont.GetHashCode(); // Display the hash code in a message box. MessageBox.Show(hashCode.ToString()); }
public: void GetHashCode_Example( PaintEventArgs^ /*e*/ ) { // Create a Font object. System::Drawing::Font^ myFont = gcnew System::Drawing::Font( "Arial",16 ); // Get the hash code for myFont. int hashCode = myFont->GetHashCode(); // Display the hash code in a message box. MessageBox::Show( hashCode.ToString() ); }
public void GetHashCode_Example(PaintEventArgs e) { // Create a Font object. Font myFont = new Font("Arial", 16); // Get the hash code for myFont. int hashCode = myFont.GetHashCode(); // Display the hash code in a message box. MessageBox.Show(System.Convert.ToString(hashCode)); } //GetHashCode_Example

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からFont.GetHashCode メソッドを検索する場合は、下記のリンクをクリックしてください。

- Font.GetHashCode メソッドのページへのリンク