FontDialog.ShowApply プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > FontDialog.ShowApply プロパティの意味・解説 

FontDialog.ShowApply プロパティ

ダイアログ ボックスに [適用] ボタン表示するかどうかを示す値を取得または設定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim instance As FontDialog
Dim value As Boolean

value = instance.ShowApply

instance.ShowApply = value
public bool ShowApply { get;
 set; }
/** @property */
public boolean get_ShowApply ()

/** @property */
public void set_ShowApply (boolean value)

プロパティ
ダイアログ ボックスに [適用] ボタン表示する場合trueそれ以外場合false既定値false です。

使用例使用例

FontDialog での選択を RichTextBox 内のテキスト適用する方法次のコード例示します。この例では、ダイアログ ボックス表示するイベント ハンドラShowApply プロパティtrue初期化してから FontDialog表示してます。Apply イベント ハンドラで、Font プロパティは Control.Font プロパティ代入されます。

Private Sub Button1_Click(ByVal
 sender As System.Object, ByVal e As
 System.EventArgs) Handles Button1.Click

    ' Sets the ShowApply property, then displays the dialog.
    FontDialog1.ShowApply = True
    FontDialog1.ShowDialog()

End Sub

Private Sub FontDialog1_Apply(ByVal
 sender As System.Object, ByVal e As
 System.EventArgs) Handles FontDialog1.Apply

    ' Applies the selected font to the selected text.
    RichTextBox1.SelectionFont = FontDialog1.Font

End Sub
private void button1_Click(object sender, System.EventArgs
 e)
{
    // Sets the ShowApply property, then displays the dialog.

    fontDialog1.ShowApply = true;
    fontDialog1.ShowDialog();
}

private void fontDialog1_Apply(object sender,
 System.EventArgs e)
{
    // Applies the selected font to the selected text.
    richTextBox1.Font = fontDialog1.Font;
            
}
private:
   void button1_Click( Object^ /*sender*/, System::EventArgs^
 /*e*/ )
   {
      // Sets the ShowApply property, then displays the dialog.
      fontDialog1->ShowApply = true;
      fontDialog1->ShowDialog();
   }

   void fontDialog1_Apply( Object^ /*sender*/, System::EventArgs^
 /*e*/ )
   {
      // Applies the selected font to the selected text.
      richTextBox1->Font = fontDialog1->Font;
   }
private void button1_Click(Object sender, System.EventArgs
 e)
{
    // Sets the ShowApply property, then displays the dialog.
    fontDialog1.set_ShowApply(true);
    fontDialog1.ShowDialog();
} //button1_Click

private void fontDialog1_Apply(Object sender,
 System.EventArgs e)
{
    // Applies the selected font to the selected text.
    richTextBox1.set_Font(fontDialog1.get_Font());
} //fontDialog1_Apply 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
FontDialog クラス
FontDialog メンバ
System.Windows.Forms 名前空間
ShowColor
ShowEffects
ShowHelp



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

辞書ショートカット

すべての辞書の索引

「FontDialog.ShowApply プロパティ」の関連用語

FontDialog.ShowApply プロパティのお隣キーワード
検索ランキング

   

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



FontDialog.ShowApply プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS