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

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

CheckedListBox.ThreeDCheckBoxes プロパティ

チェック ボックスの System.Windows.Forms.ButtonState が Flat または Normal のどちらであるかを示す値を取得または設定します

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

Public Property ThreeDCheckBoxes As
 Boolean
Dim instance As CheckedListBox
Dim value As Boolean

value = instance.ThreeDCheckBoxes

instance.ThreeDCheckBoxes = value
public bool ThreeDCheckBoxes { get;
 set; }
public:
property bool ThreeDCheckBoxes {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_ThreeDCheckBoxes ()

/** @property */
public void set_ThreeDCheckBoxes (boolean value)
public function get ThreeDCheckBoxes
 () : boolean

public function set ThreeDCheckBoxes
 (value : boolean)

プロパティ
チェック ボックスフラットな外観にする場合trueそれ以外場合false既定値true です。

使用例使用例

CheckOnClick プロパティ、SelectionMode プロパティ、および ThreeDCheckBoxes プロパティ設定して CheckedListBox コントロール初期化するコード例次に示します。このコードは、CheckedListBox にコントロール読み込み、DisplayMember にコントロールの Control.Name プロパティ設定します

この例を実行するには、CheckedListBox1 という名前の CheckedListBox オブジェクト配置されているフォーム次のコード貼り付けてフォームコンストラクタまたは Load メソッドから InitializeCheckListBox メソッド呼び出します。

// This method initializes CheckedListBox1 with a list of all 
// the controls on the form. It sets the selection mode
// to single selection and allows selection with a single click.
// It adds itself to the list before adding itself to the form.

internal System.Windows.Forms.CheckedListBox CheckedListBox1;

private void InitializeCheckedListBox()
{
    this.CheckedListBox1 = new CheckedListBox();
    this.CheckedListBox1.Location = new System.Drawing.Point(40,
 90);
    this.CheckedListBox1.CheckOnClick = true;
    this.CheckedListBox1.Name = "CheckedListBox1";
    this.CheckedListBox1.Size = new System.Drawing.Size(120,
 94);
    this.CheckedListBox1.TabIndex = 1;
    this.CheckedListBox1.SelectionMode = SelectionMode.One;
    this.CheckedListBox1.ThreeDCheckBoxes = true;

    foreach ( Control aControl in this.Controls
 )
    {
        this.CheckedListBox1.Items.Add(aControl, false);
    }

    this.CheckedListBox1.DisplayMember = "Name";
    this.CheckedListBox1.Items.Add(CheckedListBox1);
    this.Controls.Add(this.CheckedListBox1);
}
   // This method initializes CheckedListBox1 with a list of all 
   // the controls on the form. It sets the selection mode
   // to single selection and allows selection with a single click.
   // It adds itself to the list before adding itself to the form.
internal:
   System::Windows::Forms::CheckedListBox^ CheckedListBox1;

private:
   void InitializeCheckedListBox()
   {
      this->CheckedListBox1 = gcnew CheckedListBox;
      this->CheckedListBox1->Location = System::Drawing::Point(
 40, 90 );
      this->CheckedListBox1->CheckOnClick = true;
      this->CheckedListBox1->Name = "CheckedListBox1";
      this->CheckedListBox1->Size = System::Drawing::Size(
 120, 94 );
      this->CheckedListBox1->TabIndex = 1;
      this->CheckedListBox1->SelectionMode = SelectionMode::One;
      this->CheckedListBox1->ThreeDCheckBoxes = true;
      System::Collections::IEnumerator^ myEnum = this->Controls->GetEnumerator();
      while ( myEnum->MoveNext() )
      {
         Control^ aControl = safe_cast<Control^>(myEnum->Current);
         this->CheckedListBox1->Items->Add( aControl,
 false );
      }

      this->CheckedListBox1->DisplayMember = "Name";
      this->CheckedListBox1->Items->Add( CheckedListBox1
 );
      this->Controls->Add( this->CheckedListBox1
 );
   }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CheckedListBox クラス
CheckedListBox メンバ
System.Windows.Forms 名前空間
ButtonState 列挙



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS