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

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

PropertyGrid.ToolbarVisible プロパティ

ツール バー表示するかどうかを示す値を取得または設定します

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

Public Overridable Property
 ToolbarVisible As Boolean
Dim instance As PropertyGrid
Dim value As Boolean

value = instance.ToolbarVisible

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

/** @property */
public void set_ToolbarVisible (boolean value)
public function get ToolbarVisible
 () : boolean

public function set ToolbarVisible
 (value : boolean)

プロパティ
ツール バー表示する場合trueそれ以外場合false既定値true です。

使用例使用例

PropertySort プロパティと ToolBarVisible プロパティ使用して PropertyGrid コントロール初期化する方法次のコード例示しますまた、この例では、PropertyGrid コントロールVisible プロパティfalse設定して、例を実行したときにグリッド表示されないようにしています。この例を実行するには、次のコードフォーム貼り付けてフォームコンストラクタまたは Loadイベント処理メソッドInitializePropertyGrid メソッド呼び出します。フォーム実行時プロパティ グリッド表示するには、グリッドVisible プロパティtrue変更しフォームを再コンパイルして実行します

// Declare a propertyGrid.
internal PropertyGrid propertyGrid1;

// Initialize propertyGrid1.
private void InitializePropertyGrid()
{
    propertyGrid1 = new PropertyGrid();
    propertyGrid1.Name = "PropertyGrid1";
    propertyGrid1.Location = new System.Drawing.Point(185, 20);
    propertyGrid1.Size = new System.Drawing.Size(150, 300);
    propertyGrid1.TabIndex = 5;

    // Set the sort to alphabetical and set Toolbar visible
    // to false, so the user cannot change the sort.
    propertyGrid1.PropertySort = PropertySort.Alphabetical;
    propertyGrid1.ToolbarVisible = false;
    propertyGrid1.Text = "Property Grid";

    // Add the PropertyGrid to the form, but set its
    // visibility to False so it will not appear when the form loads.
    propertyGrid1.Visible = false;
    this.Controls.Add(propertyGrid1);

}
   // Declare a propertyGrid.
internal:
   PropertyGrid^ propertyGrid1;

private:

   // Initialize propertyGrid1.
   [PermissionSetAttribute(SecurityAction::Demand, Name="FullTrust")]
   void InitializePropertyGrid()
   {
      propertyGrid1 = gcnew PropertyGrid;
      propertyGrid1->Name = "PropertyGrid1";
      propertyGrid1->Location = System::Drawing::Point( 185, 20 );
      propertyGrid1->Size = System::Drawing::Size( 150, 300 );
      propertyGrid1->TabIndex = 5;
      
      // Set the sort to alphabetical and set Toolbar visible
      // to false, so the user cannot change the sort.
      propertyGrid1->PropertySort = PropertySort::Alphabetical;
      propertyGrid1->ToolbarVisible = false;
      propertyGrid1->Text = "Property Grid";
      
      // Add the PropertyGrid to the form, but set its
      // visibility to False so it will not appear when the form loads.
      propertyGrid1->Visible = false;
      this->Controls->Add( propertyGrid1 );
   }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS