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

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

ColorDialog.AllowFullOpen プロパティ

ユーザーダイアログ ボックス使用してカスタム カラー定義できるかどうかを示す値を取得または設定します

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

Public Overridable Property
 AllowFullOpen As Boolean
Dim instance As ColorDialog
Dim value As Boolean

value = instance.AllowFullOpen

instance.AllowFullOpen = value
public virtual bool AllowFullOpen { get;
 set; }
/** @property */
public boolean get_AllowFullOpen ()

/** @property */
public void set_AllowFullOpen (boolean value)
public function get AllowFullOpen
 () : boolean

public function set AllowFullOpen
 (value : boolean)

プロパティ
ユーザーカスタム カラー定義できる場合trueそれ以外場合false既定値true です。

解説解説
使用例使用例

新しい ColorDialog を作成する例を次に示します。この例では、TextBoxButton配置されている既存フォームからメソッド呼び出す必要があります

Private Sub button1_Click(sender As
 Object, e As System.EventArgs)
    Dim MyDialog As New
 ColorDialog()
    ' Keeps the user from selecting a custom color.
    MyDialog.AllowFullOpen = False
    ' Allows the user to get help. (The default is false.)
    MyDialog.ShowHelp = True
    ' Sets the initial color select to the current text color,
    MyDialog.Color = textBox1.ForeColor

    ' Update the text box color if the user clicks OK 
    If (MyDialog.ShowDialog() = DialogResult.OK) Then
        textBox1.ForeColor =  MyDialog.Color
    End If

End Sub 'button1_Click
private void button1_Click(object sender, System.EventArgs
 e)
 {
    ColorDialog MyDialog = new ColorDialog();
    // Keeps the user from selecting a custom color.
    MyDialog.AllowFullOpen = false ;
    // Allows the user to get help. (The default is false.)
    MyDialog.ShowHelp = true ;
    // Sets the initial color select to the current text color.
    MyDialog.Color = textBox1.ForeColor ;
    
    // Update the text box color if the user clicks OK 
    if (MyDialog.ShowDialog() == DialogResult.OK)
        textBox1.ForeColor =  MyDialog.Color;
 }
    
private:
   void button1_Click( Object^ /*sender*/, System::EventArgs^
 /*e*/ )
   {
      ColorDialog^ MyDialog = gcnew ColorDialog;
      // Keeps the user from selecting a custom color.
      MyDialog->AllowFullOpen = false;
      // Allows the user to get help. (The default is false.)
      MyDialog->ShowHelp = true;
      // Sets the initial color select to the current text color.
      MyDialog->Color = textBox1->ForeColor;
      
      // Update the text box color if the user clicks OK 
      if ( MyDialog->ShowDialog() == ::DialogResult::OK )
      {
         textBox1->ForeColor = MyDialog->Color;
      }
   }
protected void button1_Click(Object sender,
 System.EventArgs e)
{
    ColorDialog myDialog = new ColorDialog();
    // Keeps the user from selecting a custom color.
    myDialog.set_AllowFullOpen(false);
    // Allows the user to get help. (The default is false.)
    myDialog.set_ShowHelp(true);
    // Sets the initial color select to the current text color.
    myDialog.set_Color(textBox1.get_ForeColor());
    // Update the text box color if the user clicks OK 
    if (myDialog.ShowDialog().Equals(get_DialogResult().OK)) {
        textBox1.set_ForeColor(myDialog.get_Color());
    }
} //button1_Click
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からColorDialog.AllowFullOpen プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からColorDialog.AllowFullOpen プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からColorDialog.AllowFullOpen プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「ColorDialog.AllowFullOpen プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS