FontFamily クラスとは? わかりやすく解説

FontFamily クラス

基本デザインが同様でスタイル異なタイプフェイスグループ定義します。このクラス継承できません。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public NotInheritable Class
 FontFamily
    Inherits MarshalByRefObject
    Implements IDisposable
public sealed class FontFamily : MarshalByRefObject,
 IDisposable
public ref class FontFamily sealed : public
 MarshalByRefObject, IDisposable
public final class FontFamily extends MarshalByRefObject
 implements IDisposable
public final class FontFamily extends
 MarshalByRefObject implements IDisposable
使用例使用例

FontFamily クラスFamilies プロパティ含まれるすべてのフォント ファミリ次のコード例示します。この例は、Windows フォームでの使用意図してデザインされています。この例を実行するには、listBox1 という名前の ListBoxフォーム追加しフォームコンストラクタから PopulateListBoxWithFonts メソッド呼び出します。

Private Sub PopulateListBoxWithFonts()
    listBox1.Width = 200
    listBox1.Location = New Point(40, 120)
    Dim oneFontFamily As FontFamily
    For Each oneFontFamily In
 FontFamily.Families
        listBox1.Items.Add(oneFontFamily.Name)
    Next
End Sub
private void PopulateListBoxWithFonts()
{
    listBox1.Width = 200;
    listBox1.Location = new Point(40, 120);
    foreach ( FontFamily oneFontFamily in FontFamily.Families
 )
    {
        listBox1.Items.Add(oneFontFamily.Name);
    }
}
private:
   void PopulateListBoxWithFonts()
   {
      listBox1->Width = 200;
      listBox1->Location = Point(40,120);
      System::Collections::IEnumerator^ myEnum = FontFamily::Families->GetEnumerator();
      while ( myEnum->MoveNext() )
      {
         FontFamily^ oneFontFamily = safe_cast<FontFamily^>(myEnum->Current);
         listBox1->Items->Add( oneFontFamily->Name );
      }
   }
private void PopulateListBoxWithFonts()
{
    listBox1.set_Width(200);
    listBox1.set_Location(new Point(40, 120));

    //foreach (FontFamily oneFontFamily in FontFamily.Families)
    for (int iCtr = 0; iCtr < FontFamily.get_Families().length;
 iCtr++) {
        FontFamily oneFontFamily = FontFamily.get_Families()[iCtr];
        listBox1.get_Items().Add(oneFontFamily.get_Name());
    }
} //PopulateListBoxWithFonts
継承階層継承階層
System.Object
   System.MarshalByRefObject
    System.Drawing.FontFamily
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「FontFamily クラス」の関連用語

FontFamily クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FontFamily クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS