PropertyGrid.ToolbarVisible プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
 構文
構文Dim instance As PropertyGrid Dim value As Boolean value = instance.ToolbarVisible instance.ToolbarVisible = value
/** @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 ); }
 プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照Weblioに収録されているすべての辞書からPropertyGrid.ToolbarVisible プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPropertyGrid.ToolbarVisible プロパティ
                    を検索
                     全ての辞書からPropertyGrid.ToolbarVisible プロパティ
                    を検索
                - PropertyGrid.ToolbarVisible プロパティのページへのリンク

 
                             
                    


