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

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

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
Public Sub GetHashCode_Example(ByVal e As PaintEventArgs) ' Create a FontFamily object. Dim myFontFamily As New FontFamily("Arial") ' Get the hash code for myFontFamily. Dim hashCode As Integer = myFontFamily.GetHashCode() ' Draw the value of hashCode to the screen as a string. e.Graphics.DrawString("hashCode = " & hashCode.ToString(), _ New Font(myFontFamily, 16), Brushes.Black, New PointF(0, 0)) End Sub
public void GetHashCode_Example(PaintEventArgs e) { // Create a FontFamily object. FontFamily myFontFamily = new FontFamily("Arial"); // Get the hash code for myFontFamily. int hashCode = myFontFamily.GetHashCode(); // Draw the value of hashCode to the screen as a string. e.Graphics.DrawString( "hashCode = " + hashCode.ToString(), new Font(myFontFamily, 16), Brushes.Black, new PointF(0, 0)); }
public: void GetHashCode_Example( PaintEventArgs^ e ) { // Create a FontFamily object. FontFamily^ myFontFamily = gcnew FontFamily( "Arial" ); // Get the hash code for myFontFamily. int hashCode = myFontFamily->GetHashCode(); // Draw the value of hashCode to the screen as a string. e->Graphics->DrawString( String::Format( "hashCode = {0}", hashCode ), gcnew System::Drawing::Font( myFontFamily,16 ), Brushes::Black, PointF(0,0) ); }
public void GetHashCode_Example(PaintEventArgs e) { // Create a FontFamily object. FontFamily myFontFamily = new FontFamily("Arial"); // Get the hash code for myFontFamily. int hashCode = myFontFamily.GetHashCode(); // Draw the value of hashCode to the screen as a string. e.get_Graphics().DrawString("hashCode = " + System.Convert.ToString(hashCode), new Font(myFontFamily, 16), Brushes.get_Black(), new PointF(0, 0)); } //GetHashCode_Example

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


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

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