ツール‐バー【tool bar】
ツールバー
ツールバーとは、ユーザーが行う操作を簡易化するために用意されたボタンの集まりのことである。
ツールバーは、多くのアプリケーションソフトでは、画面の上や下などに配置されている。
ツールバー上のボタンには、それぞれ「新規作成」や「印刷プレビュー」、「中央ぞろえ」などのユーザーがよく使うと思われる機能が割り振られている。ユーザーは、メニュー操作を行うことなく、ボタンを押すだけで機能が実行できる。
ツールバーのボタンを用途によってグループごとに分類したり、自分で作成したマクロをボタンに割り当てたりすることが可能なアプリケーションソフトもある。
最近では、Web上で自社が提供するサービスへ誘導することを目的に、自社製のツールバーを無償配布しているところもある。このようなツールバーは、インストールをするとWebブラウザに組み込まれる。一例として、Googleが提供している「Google ツールバー」、Yahoo!が提供している「Yahoo!ツールバー」、ミクシィが提供している「mixiツールバー」などがある。
ToolBar イベント
パブリック イベント
参照ToolBar クラス
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文<ComVisibleAttribute(True)> _ <ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _ Public Class ToolBar Inherits Control
[ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] public class ToolBar : Control
[ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] public ref class ToolBar : public Control
解説ToolBar コントロールは、標準のボタン、トグル スタイルのボタン、またはドロップダウン スタイルのボタンとして表示される ToolBarButton コントロールを表示するために使用されます。ボタンにイメージを割り当てるには、ImageList を作成し、それをツール バーの ImageList プロパティに割り当て、イメージのインデックス値を各 ToolBarButton の ImageIndex プロパティに代入します。次に、ToolBarButton の Text プロパティを設定して、イメージの下または右側に表示されるテキストを割り当てます。
ツール バーの Appearance プロパティを Flat に設定して、ツール バーとそのボタンがフラットな外観になるようにします。マウス ポインタをボタンの上に移動すると、ボタンの外観が 3 次元に変化します。ツール バー ボタンは、区切り記号を使用して論理グループに分けることができます。区切り記号は、Style プロパティが ToolBarButtonStyle.Separator に設定されている一種のツール バー ボタンです。ツール バーがフラットな外観である場合、ボタンの区切り記号は、各ボタンとの間に空白ではなく線として表示されます。Appearance プロパティが Normal に設定されている場合、このツール バー ボタンは浮き出した状態の 3D で表示されます。
ButtonSize プロパティの値を指定した場合、ツール バーのすべてのボタンが、指定したサイズに制限されます。指定しない場合、ボタンのサイズは内容によって調整され、ButtonSize プロパティは最大のボタンの初期サイズを返します。
ToolBar 上に表示する ToolBarButton コントロールのコレクションを作成するには、Buttons プロパティの Add メソッド、または Insert メソッドを使用して、ボタンを個別に追加します。
Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows CE プラットフォームメモ : 1 つのフォームでサポートされる ToolBar は 1 つだけです。複数の ToolBar を追加しようとすると、NotSupportedException がスローされます。フォーム以外のコントロール、たとえば Panel に ToolBar を追加することはできません。
使用例ToolBar と 3 つの ToolBarButton コントロールを作成するコード例を次に示します。ツール バー ボタンはボタン コレクションに割り当てられ、コレクションはツール バーに割り当てられ、ツール バーはフォームに追加されます。ツール バーの ButtonClick イベントが発生すると、ToolBarButtonClickEventArgs の Button プロパティが評価され、該当するダイアログ ボックスが開きます。このコードは、Form、OpenFileDialog、SaveFileDialog、および PrintDialog がすべて作成されていることを前提にしています。
Public Sub InitializeMyToolBar() ' Create and initialize the ToolBar and ToolBarButton controls. Dim toolBar1 As New ToolBar() Dim toolBarButton1 As New ToolBarButton() Dim toolBarButton2 As New ToolBarButton() Dim toolBarButton3 As New ToolBarButton() ' Set the Text properties of the ToolBarButton controls. toolBarButton1.Text = "Open" toolBarButton2.Text = "Save" toolBarButton3.Text = "Print" ' Add the ToolBarButton controls to the ToolBar. toolBar1.Buttons.Add(toolBarButton1) toolBar1.Buttons.Add(toolBarButton2) toolBar1.Buttons.Add(toolBarButton3) ' Add the event-handler delegate. AddHandler toolBar1.ButtonClick, AddressOf Me.toolBar1_ButtonClick ' Add the ToolBar to the Form. Controls.Add(toolBar1) End Sub Private Sub toolBar1_ButtonClick(ByVal sender As Object, _ ByVal e As ToolBarButtonClickEventArgs) ' Evaluate the Button property to determine which button was clicked. Select Case toolBar1.Buttons.IndexOf(e.Button) Case 0 openFileDialog1.ShowDialog() ' Insert code to open the file. Case 1 saveFileDialog1.ShowDialog() ' Insert code to save the file. Case 2 printDialog1.ShowDialog() ' Insert code to print the file. End Select End Sub
public void InitializeMyToolBar() { // Create and initialize the ToolBar and ToolBarButton controls. toolBar1 = new ToolBar(); ToolBarButton toolBarButton1 = new ToolBarButton(); ToolBarButton toolBarButton2 = new ToolBarButton(); ToolBarButton toolBarButton3 = new ToolBarButton(); // Set the Text properties of the ToolBarButton controls. toolBarButton1.Text = "Open"; toolBarButton2.Text = "Save"; toolBarButton3.Text = "Print"; // Add the ToolBarButton controls to the ToolBar. toolBar1.Buttons.Add(toolBarButton1); toolBar1.Buttons.Add(toolBarButton2); toolBar1.Buttons.Add(toolBarButton3); // Add the event-handler delegate. toolBar1.ButtonClick += new ToolBarButtonClickEventHandler ( this.toolBar1_ButtonClick); // Add the ToolBar to the Form. Controls.Add(toolBar1); } private void toolBar1_ButtonClick ( Object sender, ToolBarButtonClickEventArgs e) { // Evaluate the Button property to determine which button was clicked. switch(toolBar1.Buttons.IndexOf(e.Button)) { case 0: openFileDialog1.ShowDialog(); // Insert code to open the file. break; case 1: saveFileDialog1.ShowDialog(); // Insert code to save the file. break; case 2: printDialog1.ShowDialog(); // Insert code to print the file. break; } }
public: void InitializeMyToolBar() { // Create and initialize the ToolBar and ToolBarButton controls. toolBar1 = gcnew ToolBar; ToolBarButton^ toolBarButton1 = gcnew ToolBarButton; ToolBarButton^ toolBarButton2 = gcnew ToolBarButton; ToolBarButton^ toolBarButton3 = gcnew ToolBarButton; // Set the Text properties of the ToolBarButton controls. toolBarButton1->Text = "Open"; toolBarButton2->Text = "Save"; toolBarButton3->Text = "Print"; // Add the ToolBarButton controls to the ToolBar. toolBar1->Buttons->Add( toolBarButton1 ); toolBar1->Buttons->Add( toolBarButton2 ); toolBar1->Buttons->Add( toolBarButton3 ); // Add the event-handler delegate. toolBar1->ButtonClick += gcnew ToolBarButtonClickEventHandler( this, &Form1::toolBar1_ButtonClick ); // Add the ToolBar to the Form. Controls->Add( toolBar1 ); } private: void toolBar1_ButtonClick( Object^ sender, ToolBarButtonClickEventArgs^ e ) { // Evaluate the Button property to determine which button was clicked. switch ( toolBar1->Buttons->IndexOf( e->Button ) ) { case 0: openFileDialog1->ShowDialog(); // Insert code to open the file. break; case 1: saveFileDialog1->ShowDialog(); // Insert code to save the file. break; case 2: printDialog1->ShowDialog(); // Insert code to print the file. break; } }
public void InitializeMyToolBar() { // Create and initialize the ToolBar and ToolBarButton controls. toolBar1 = new ToolBar(); ToolBarButton toolBarButton1 = new ToolBarButton(); ToolBarButton toolBarButton2 = new ToolBarButton(); ToolBarButton toolBarButton3 = new ToolBarButton(); // Set the Text properties of the ToolBarButton controls. toolBarButton1.set_Text("Open"); toolBarButton2.set_Text("Save"); toolBarButton3.set_Text("Print"); // Add the ToolBarButton controls to the ToolBar. toolBar1.get_Buttons().Add(toolBarButton1); toolBar1.get_Buttons().Add(toolBarButton2); toolBar1.get_Buttons().Add(toolBarButton3); // Add the event-handler delegate. toolBar1.add_ButtonClick(new ToolBarButtonClickEventHandler( this.toolBar1_ButtonClick)); // Add the ToolBar to the Form. get_Controls().Add(toolBar1); } //InitializeMyToolBar protected void toolBar1_ButtonClick(Object sender, ToolBarButtonClickEventArgs e) { // Evaluate the Button property to determine which button was clicked. switch (toolBar1.get_Buttons().IndexOf(e.get_Button())) { case 0 : openFileDialog1.ShowDialog(); // Insert code to open the file. break; case 1 : saveFileDialog1.ShowDialog(); // Insert code to save the file. break; case 2 : printDialog1.ShowDialog(); // Insert code to print the file. break; } } //toolBar1_ButtonClick
継承階層System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ToolBar
スレッド セーフ
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照ToolBar コンストラクタ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文
解説
使用例ToolBar と 3 つの ToolBarButton コントロールを作成するコード例を次に示します。ツール バー ボタンはボタン コレクションに割り当てられ、コレクションはツール バーに割り当てられ、ツール バーはフォームに追加されます。ツール バーの ButtonClick イベントが発生すると、ToolBarButtonClickEventArgs の Button プロパティが評価され、該当するダイアログ ボックスが開きます。このコードは、Form、OpenFileDialog、SaveFileDialog、および PrintDialog がすべて作成されていることを前提にしています。
Public Sub InitializeMyToolBar() ' Create and initialize the ToolBar and ToolBarButton controls. Dim toolBar1 As New ToolBar() Dim toolBarButton1 As New ToolBarButton() Dim toolBarButton2 As New ToolBarButton() Dim toolBarButton3 As New ToolBarButton() ' Set the Text properties of the ToolBarButton controls. toolBarButton1.Text = "Open" toolBarButton2.Text = "Save" toolBarButton3.Text = "Print" ' Add the ToolBarButton controls to the ToolBar. toolBar1.Buttons.Add(toolBarButton1) toolBar1.Buttons.Add(toolBarButton2) toolBar1.Buttons.Add(toolBarButton3) ' Add the event-handler delegate. AddHandler toolBar1.ButtonClick, AddressOf Me.toolBar1_ButtonClick ' Add the ToolBar to the Form. Controls.Add(toolBar1) End Sub Private Sub toolBar1_ButtonClick(ByVal sender As Object, _ ByVal e As ToolBarButtonClickEventArgs) ' Evaluate the Button property to determine which button was clicked. Select Case toolBar1.Buttons.IndexOf(e.Button) Case 0 openFileDialog1.ShowDialog() ' Insert code to open the file. Case 1 saveFileDialog1.ShowDialog() ' Insert code to save the file. Case 2 printDialog1.ShowDialog() ' Insert code to print the file. End Select End Sub
public void InitializeMyToolBar() { // Create and initialize the ToolBar and ToolBarButton controls. toolBar1 = new ToolBar(); ToolBarButton toolBarButton1 = new ToolBarButton(); ToolBarButton toolBarButton2 = new ToolBarButton(); ToolBarButton toolBarButton3 = new ToolBarButton(); // Set the Text properties of the ToolBarButton controls. toolBarButton1.Text = "Open"; toolBarButton2.Text = "Save"; toolBarButton3.Text = "Print"; // Add the ToolBarButton controls to the ToolBar. toolBar1.Buttons.Add(toolBarButton1); toolBar1.Buttons.Add(toolBarButton2); toolBar1.Buttons.Add(toolBarButton3); // Add the event-handler delegate. toolBar1.ButtonClick += new ToolBarButtonClickEventHandler ( this.toolBar1_ButtonClick); // Add the ToolBar to the Form. Controls.Add(toolBar1); } private void toolBar1_ButtonClick ( Object sender, ToolBarButtonClickEventArgs e) { // Evaluate the Button property to determine which button was clicked. switch(toolBar1.Buttons.IndexOf(e.Button)) { case 0: openFileDialog1.ShowDialog(); // Insert code to open the file. break; case 1: saveFileDialog1.ShowDialog(); // Insert code to save the file. break; case 2: printDialog1.ShowDialog(); // Insert code to print the file. break; } }
public: void InitializeMyToolBar() { // Create and initialize the ToolBar and ToolBarButton controls. toolBar1 = gcnew ToolBar; ToolBarButton^ toolBarButton1 = gcnew ToolBarButton; ToolBarButton^ toolBarButton2 = gcnew ToolBarButton; ToolBarButton^ toolBarButton3 = gcnew ToolBarButton; // Set the Text properties of the ToolBarButton controls. toolBarButton1->Text = "Open"; toolBarButton2->Text = "Save"; toolBarButton3->Text = "Print"; // Add the ToolBarButton controls to the ToolBar. toolBar1->Buttons->Add( toolBarButton1 ); toolBar1->Buttons->Add( toolBarButton2 ); toolBar1->Buttons->Add( toolBarButton3 ); // Add the event-handler delegate. toolBar1->ButtonClick += gcnew ToolBarButtonClickEventHandler( this, &Form1::toolBar1_ButtonClick ); // Add the ToolBar to the Form. Controls->Add( toolBar1 ); } private: void toolBar1_ButtonClick( Object^ sender, ToolBarButtonClickEventArgs^ e ) { // Evaluate the Button property to determine which button was clicked. switch ( toolBar1->Buttons->IndexOf( e->Button ) ) { case 0: openFileDialog1->ShowDialog(); // Insert code to open the file. break; case 1: saveFileDialog1->ShowDialog(); // Insert code to save the file. break; case 2: printDialog1->ShowDialog(); // Insert code to print the file. break; } }
public void InitializeMyToolBar() { // Create and initialize the ToolBar and ToolBarButton controls. toolBar1 = new ToolBar(); ToolBarButton toolBarButton1 = new ToolBarButton(); ToolBarButton toolBarButton2 = new ToolBarButton(); ToolBarButton toolBarButton3 = new ToolBarButton(); // Set the Text properties of the ToolBarButton controls. toolBarButton1.set_Text("Open"); toolBarButton2.set_Text("Save"); toolBarButton3.set_Text("Print"); // Add the ToolBarButton controls to the ToolBar. toolBar1.get_Buttons().Add(toolBarButton1); toolBar1.get_Buttons().Add(toolBarButton2); toolBar1.get_Buttons().Add(toolBarButton3); // Add the event-handler delegate. toolBar1.add_ButtonClick(new ToolBarButtonClickEventHandler( this.toolBar1_ButtonClick)); // Add the ToolBar to the Form. get_Controls().Add(toolBar1); } //InitializeMyToolBar protected void toolBar1_ButtonClick(Object sender, ToolBarButtonClickEventArgs e) { // Evaluate the Button property to determine which button was clicked. switch (toolBar1.get_Buttons().IndexOf(e.get_Button())) { case 0 : openFileDialog1.ShowDialog(); // Insert code to open the file. break; case 1 : saveFileDialog1.ShowDialog(); // Insert code to save the file. break; case 2 : printDialog1.ShowDialog(); // Insert code to print the file. break; } } //toolBar1_ButtonClick
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照ToolBar プロパティ
パブリック プロパティ
プロテクト プロパティ
参照ToolBar メソッド
パブリック メソッド
プロテクト メソッド| 名前 | 説明 | |
|---|---|---|
| AccessibilityNotifyClients | オーバーロードされます。 ユーザー補助クライアント アプリケーションに AccessibleEvents を通知します。 ( Control から継承されます。) |
| CreateAccessibilityInstance | コントロールの新しいユーザー補助オブジェクトを作成します。 ( Control から継承されます。) |
| CreateControlsInstance | コントロールのコントロール コレクションの新しいインスタンスを作成します。 ( Control から継承されます。) |
| CreateHandle | オーバーライドされます。 |
| DefWndProc | 指定したメッセージを既定のウィンドウ プロシージャに送信します。 ( Control から継承されます。) |
| DestroyHandle | コントロールに関連付けられたハンドルを破棄します。 ( Control から継承されます。) |
| Dispose | オーバーロードされます。 オーバーライドされます。 ToolBar によって使用されているリソースを解放します。 |
| Finalize | Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 ( Component から継承されます。) |
| GetAccessibilityObjectById | 指定した AccessibleObject を取得します。 ( Control から継承されます。) |
| GetAutoSizeMode | AutoSize プロパティが有効なときのコントロールの動作を示す値を取得します。 ( Control から継承されます。) |
| GetScaledBounds | コントロールのスケールが設定される境界を取得します。 ( Control から継承されます。) |
| GetService | Component またはその Container で提供されるサービスを表すオブジェクトを返します。 ( Component から継承されます。) |
| GetStyle | コントロールの指定したコントロール スタイル ビットの値を取得します。 ( Control から継承されます。) |
| GetTopLevel | コントロールがトップレベル コントロールかどうかを判断します。 ( Control から継承されます。) |
| InitLayout | コントロールが別のコンテナに追加された後、呼び出されます。 ( Control から継承されます。) |
| InvokeGotFocus | 指定したコントロールの GotFocus イベントを発生させます。 ( Control から継承されます。) |
| InvokeLostFocus | 指定したコントロールの LostFocus イベントを発生させます。 ( Control から継承されます。) |
| InvokeOnClick | 指定したコントロールの Click イベントを発生させます。 ( Control から継承されます。) |
| InvokePaint | 指定したコントロールの Paint イベントを発生させます。 ( Control から継承されます。) |
| InvokePaintBackground | 指定したコントロールの PaintBackground イベントを発生させます。 ( Control から継承されます。) |
| IsInputChar | 文字が、コントロールによって認識される入力文字かどうかを判断します。 ( Control から継承されます。) |
| IsInputKey | 指定されているキーが、通常の入力キーであるか、またはプリプロセスを必要とする特殊なキーであるかを確認します。 ( Control から継承されます。) |
| MemberwiseClone | オーバーロードされます。 ( MarshalByRefObject から継承されます。) |
| NotifyInvalidate | 無効化するコントロールの領域を指定して、Invalidated イベントを発生させます。 ( Control から継承されます。) |
| OnAutoSizeChanged | AutoSizeChanged イベントを発生させます。 ( Control から継承されます。) |
| OnBackColorChanged | BackColorChanged イベントを発生させます。 ( Control から継承されます。) |
| OnBackgroundImageChanged | BackgroundImageChanged イベントを発生させます。 ( Control から継承されます。) |
| OnBackgroundImageLayoutChanged | BackgroundImageLayoutChanged イベントを発生させます。 ( Control から継承されます。) |
| OnBindingContextChanged | BindingContextChanged イベントを発生させます。 ( Control から継承されます。) |
| OnButtonClick | ButtonClick イベントを発生させます。 |
| OnButtonDropDown | ButtonDropDown イベントを発生させます。 |
| OnCausesValidationChanged | CausesValidationChanged イベントを発生させます。 ( Control から継承されます。) |
| OnChangeUICues | ChangeUICues イベントを発生させます。 ( Control から継承されます。) |
| OnClick | Click イベントを発生させます。 ( Control から継承されます。) |
| OnClientSizeChanged | ClientSizeChanged イベントを発生させます。 ( Control から継承されます。) |
| OnContextMenuChanged | ContextMenuChanged イベントを発生させます。 ( Control から継承されます。) |
| OnContextMenuStripChanged | ContextMenuStripChanged イベントを発生させます。 ( Control から継承されます。) |
| OnControlAdded | ControlAdded イベントを発生させます。 ( Control から継承されます。) |
| OnControlRemoved | ControlRemoved イベントを発生させます。 ( Control から継承されます。) |
| OnCreateControl | CreateControl イベントを発生させます。 ( Control から継承されます。) |
| OnCursorChanged | CursorChanged イベントを発生させます。 ( Control から継承されます。) |
| OnDockChanged | DockChanged イベントを発生させます。 ( Control から継承されます。) |
| OnDoubleClick | DoubleClick イベントを発生させます。 ( Control から継承されます。) |
| OnDragDrop | DragDrop イベントを発生させます。 ( Control から継承されます。) |
| OnDragEnter | DragEnter イベントを発生させます。 ( Control から継承されます。) |
| OnDragLeave | DragLeave イベントを発生させます。 ( Control から継承されます。) |
| OnDragOver | DragOver イベントを発生させます。 ( Control から継承されます。) |
| OnEnabledChanged | EnabledChanged イベントを発生させます。 ( Control から継承されます。) |
| OnEnter | Enter イベントを発生させます。 ( Control から継承されます。) |
| OnFontChanged | オーバーライドされます。 FontChanged イベントを発生させます。 |
| OnForeColorChanged | ForeColorChanged イベントを発生させます。 ( Control から継承されます。) |
| OnGiveFeedback | GiveFeedback イベントを発生させます。 ( Control から継承されます。) |
| OnGotFocus | GotFocus イベントを発生させます。 ( Control から継承されます。) |
| OnHandleCreated | オーバーライドされます。 |
| OnHandleDestroyed | HandleDestroyed イベントを発生させます。 ( Control から継承されます。) |
| OnHelpRequested | HelpRequested イベントを発生させます。 ( Control から継承されます。) |
| OnImeModeChanged | ImeModeChanged イベントを発生させます。 ( Control から継承されます。) |
| OnInvalidated | Invalidated イベントを発生させます。 ( Control から継承されます。) |
| OnKeyDown | KeyDown イベントを発生させます。 ( Control から継承されます。) |
| OnKeyPress | KeyPress イベントを発生させます。 ( Control から継承されます。) |
| OnKeyUp | KeyUp イベントを発生させます。 ( Control から継承されます。) |
| OnLayout | Layout イベントを発生させます。 ( Control から継承されます。) |
| OnLeave | Leave イベントを発生させます。 ( Control から継承されます。) |
| OnLocationChanged | LocationChanged イベントを発生させます。 ( Control から継承されます。) |
| OnLostFocus | LostFocus イベントを発生させます。 ( Control から継承されます。) |
| OnMarginChanged | MarginChanged イベントを発生させます。 ( Control から継承されます。) |
| OnMouseCaptureChanged | MouseCaptureChanged イベントを発生させます。 ( Control から継承されます。) |
| OnMouseClick | MouseClick イベントを発生させます。 ( Control から継承されます。) |
| OnMouseDoubleClick | MouseDoubleClick イベントを発生させます。 ( Control から継承されます。) |
| OnMouseDown | MouseDown イベントを発生させます。 ( Control から継承されます。) |
| OnMouseEnter | MouseEnter イベントを発生させます。 ( Control から継承されます。) |
| OnMouseHover | MouseHover イベントを発生させます。 ( Control から継承されます。) |
| OnMouseLeave | MouseLeave イベントを発生させます。 ( Control から継承されます。) |
| OnMouseMove | MouseMove イベントを発生させます。 ( Control から継承されます。) |
| OnMouseUp | MouseUp イベントを発生させます。 ( Control から継承されます。) |
| OnMouseWheel | MouseWheel イベントを発生させます。 ( Control から継承されます。) |
| OnMove | Move イベントを発生させます。 ( Control から継承されます。) |
| OnNotifyMessage | コントロールに Windows メッセージを通知します。 ( Control から継承されます。) |
| OnPaddingChanged | PaddingChanged イベントを発生させます。 ( Control から継承されます。) |
| OnPaint | Paint イベントを発生させます。 ( Control から継承されます。) |
| OnPaintBackground | コントロールの背景を描画します。 ( Control から継承されます。) |
| OnParentBackColorChanged | コントロールのコンテナの BackColor プロパティ値が変更された場合に、BackColorChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentBackgroundImageChanged | コントロールのコンテナの BackgroundImage プロパティ値が変更された場合に、BackgroundImageChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentBindingContextChanged | コントロールのコンテナの BindingContext プロパティ値が変更された場合に、BindingContextChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentChanged | ParentChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentCursorChanged | CursorChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentEnabledChanged | コントロールのコンテナの Enabled プロパティ値が変更された場合に、EnabledChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentFontChanged | コントロールのコンテナの Font プロパティ値が変更された場合に、FontChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentForeColorChanged | コントロールのコンテナの ForeColor プロパティ値が変更された場合に、ForeColorChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentRightToLeftChanged | コントロールのコンテナの RightToLeft プロパティ値が変更された場合に、RightToLeftChanged イベントを発生させます。 ( Control から継承されます。) |
| OnParentVisibleChanged | コントロールのコンテナの Visible プロパティ値が変更された場合に、VisibleChanged イベントを発生させます。 ( Control から継承されます。) |
| OnPreviewKeyDown | PreviewKeyDown イベントを発生させます。 ( Control から継承されます。) |
| OnPrint | Paint イベントを発生させます。 ( Control から継承されます。) |
| OnQueryContinueDrag | QueryContinueDrag イベントを発生させます。 ( Control から継承されます。) |
| OnRegionChanged | RegionChanged イベントを発生させます。 ( Control から継承されます。) |
| OnResize | オーバーライドされます。 |
| OnRightToLeftChanged | RightToLeftChanged イベントを発生させます。 ( Control から継承されます。) |
| OnSizeChanged | SizeChanged イベントを発生させます。 ( Control から継承されます。) |
| OnStyleChanged | StyleChanged イベントを発生させます。 ( Control から継承されます。) |
| OnSystemColorsChanged | SystemColorsChanged イベントを発生させます。 ( Control から継承されます。) |
| OnTabIndexChanged | TabIndexChanged イベントを発生させます。 ( Control から継承されます。) |
| OnTabStopChanged | TabStopChanged イベントを発生させます。 ( Control から継承されます。) |
| OnTextChanged | TextChanged イベントを発生させます。 ( Control から継承されます。) |
| OnValidated | Validated イベントを発生させます。 ( Control から継承されます。) |
| OnValidating | Validating イベントを発生させます。 ( Control から継承されます。) |
| OnVisibleChanged | VisibleChanged イベントを発生させます。 ( Control から継承されます。) |
| ProcessCmdKey | コマンド キーを処理します。 ( Control から継承されます。) |
| ProcessDialogChar | ダイアログ文字を処理します。 ( Control から継承されます。) |
| ProcessDialogKey | ダイアログ キーを処理します。 ( Control から継承されます。) |
| ProcessKeyEventArgs | キー メッセージを処理し、適切なコントロール イベントを生成します。 ( Control から継承されます。) |
| ProcessKeyMessage | キーボード メッセージを処理します。 ( Control から継承されます。) |
| ProcessKeyPreview | キーボード メッセージをプレビューします。 ( Control から継承されます。) |
| ProcessMnemonic | ニーモニック文字を処理します。 ( Control から継承されます。) |
| RaiseDragEvent | 適切なドラッグ イベントを発生させます。 ( Control から継承されます。) |
| RaiseKeyEvent | 適切なキー イベントを発生させます。 ( Control から継承されます。) |
| RaiseMouseEvent | 適切なマウス イベントを発生させます。 ( Control から継承されます。) |
| RaisePaintEvent | 適切な描画イベントを発生させます。 ( Control から継承されます。) |
| RecreateHandle | 強制的にコントロールのハンドルを再作成します。 ( Control から継承されます。) |
| ReflectMessage | 指定したメッセージを指定したハンドルにバインドされたコントロールにリフレクションします。 ( Control から継承されます。) |
| ResetMouseEventArgs | MouseLeave イベントを処理するためのコントロールをリセットします。 ( Control から継承されます。) |
| RtlTranslateAlignment | オーバーロードされます。 現在の配置を適切な配置に変換し、テキストを右から左に表示できるようにします。 ( Control から継承されます。) |
| RtlTranslateContent | 指定した ContentAlignment を適切な ContentAlignment に変換し、テキストを右から左に表示できるようにします。 ( Control から継承されます。) |
| RtlTranslateHorizontal | 指定した HorizontalAlignment を適切な HorizontalAlignment に変換し、テキストを右から左に表示できるようにします。 ( Control から継承されます。) |
| RtlTranslateLeftRight | 指定した LeftRightAlignment を適切な LeftRightAlignment に変換し、テキストを右から左に表示できるようにします。 ( Control から継承されます。) |
| ScaleControl | オーバーライドされます。 |
| ScaleCore | オーバーライドされます。 |
| Select | オーバーロードされます。 コントロールをアクティブにします。 ( Control から継承されます。) |
| SetAutoSizeMode | AutoSize プロパティが有効なときのコントロールの動作を示す値を設定します。 ( Control から継承されます。) |
| SetBoundsCore | オーバーライドされます。 ToolBar コントロールの指定境界を設定します。 |
| SetClientSizeCore | コントロールのクライアント領域のサイズを設定します。 ( Control から継承されます。) |
| SetStyle | 指定したスタイル ビットを指定した値に設定します。 ( Control から継承されます。) |
| SetTopLevel | コントロールをトップレベル コントロールとして設定します。 ( Control から継承されます。) |
| SetVisibleCore | コントロールを指定した表示状態に設定します。 ( Control から継承されます。) |
| SizeFromClientSize | クライアント領域の高さおよび幅からコントロール全体のサイズを決定します。 ( Control から継承されます。) |
| UpdateBounds | オーバーロードされます。 コントロールの範囲を更新します。 ( Control から継承されます。) |
| UpdateStyles | 割り当て済みのスタイルを強制的にコントロールに再適用します。 ( Control から継承されます。) |
| UpdateZOrder | コントロールを親の z オーダーで更新します。 ( Control から継承されます。) |
| WndProc | オーバーライドされます。 |
参照ToolBar メンバ
Windows ツール バーを表します。ToolStrip は以前のバージョンの ToolBar コントロールの機能を置換または追加しますが、選択により、下位互換性および将来の使用のために ToolBar を保持することもできます。
ToolBar データ型で公開されるメンバを以下の表に示します。
パブリック コンストラクタ
パブリック プロパティ
プロテクト プロパティ
パブリック メソッド
プロテクト メソッド| 名前 | 説明 | |
|---|---|---|
| AccessibilityNotifyClients | オーバーロードされます。 ユーザー補助クライアント アプリケーションに AccessibleEvents を通知します。 (Control から継承されます。) |
| CreateAccessibilityInstance | コントロールの新しいユーザー補助オブジェクトを作成します。 (Control から継承されます。) |
| CreateControlsInstance | コントロールのコントロール コレクションの新しいインスタンスを作成します。 (Control から継承されます。) |
| CreateHandle | オーバーライドされます。 |
| DefWndProc | 指定したメッセージを既定のウィンドウ プロシージャに送信します。 (Control から継承されます。) |
| DestroyHandle | コントロールに関連付けられたハンドルを破棄します。 (Control から継承されます。) |
| Dispose | オーバーロードされます。 オーバーライドされます。 ToolBar によって使用されているリソースを解放します。 |
| Finalize | Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 (Component から継承されます。) |
| GetAccessibilityObjectById | 指定した AccessibleObject を取得します。 (Control から継承されます。) |
| GetAutoSizeMode | AutoSize プロパティが有効なときのコントロールの動作を示す値を取得します。 (Control から継承されます。) |
| GetScaledBounds | コントロールのスケールが設定される境界を取得します。 (Control から継承されます。) |
| GetService | Component またはその Container で提供されるサービスを表すオブジェクトを返します。 (Component から継承されます。) |
| GetStyle | コントロールの指定したコントロール スタイル ビットの値を取得します。 (Control から継承されます。) |
| GetTopLevel | コントロールがトップレベル コントロールかどうかを判断します。 (Control から継承されます。) |
| InitLayout | コントロールが別のコンテナに追加された後、呼び出されます。 (Control から継承されます。) |
| InvokeGotFocus | 指定したコントロールの GotFocus イベントを発生させます。 (Control から継承されます。) |
| InvokeLostFocus | 指定したコントロールの LostFocus イベントを発生させます。 (Control から継承されます。) |
| InvokeOnClick | 指定したコントロールの Click イベントを発生させます。 (Control から継承されます。) |
| InvokePaint | 指定したコントロールの Paint イベントを発生させます。 (Control から継承されます。) |
| InvokePaintBackground | 指定したコントロールの PaintBackground イベントを発生させます。 (Control から継承されます。) |
| IsInputChar | 文字が、コントロールによって認識される入力文字かどうかを判断します。 (Control から継承されます。) |
| IsInputKey | 指定されているキーが、通常の入力キーであるか、またはプリプロセスを必要とする特殊なキーであるかを確認します。 (Control から継承されます。) |
| MemberwiseClone | オーバーロードされます。 ( MarshalByRefObject から継承されます。) |
| NotifyInvalidate | 無効化するコントロールの領域を指定して、Invalidated イベントを発生させます。 (Control から継承されます。) |
| OnAutoSizeChanged | AutoSizeChanged イベントを発生させます。 (Control から継承されます。) |
| OnBackColorChanged | BackColorChanged イベントを発生させます。 (Control から継承されます。) |
| OnBackgroundImageChanged | BackgroundImageChanged イベントを発生させます。 (Control から継承されます。) |
| OnBackgroundImageLayoutChanged | BackgroundImageLayoutChanged イベントを発生させます。 (Control から継承されます。) |
| OnBindingContextChanged | BindingContextChanged イベントを発生させます。 (Control から継承されます。) |
| OnButtonClick | ButtonClick イベントを発生させます。 |
| OnButtonDropDown | ButtonDropDown イベントを発生させます。 |
| OnCausesValidationChanged | CausesValidationChanged イベントを発生させます。 (Control から継承されます。) |
| OnChangeUICues | ChangeUICues イベントを発生させます。 (Control から継承されます。) |
| OnClick | Click イベントを発生させます。 (Control から継承されます。) |
| OnClientSizeChanged | ClientSizeChanged イベントを発生させます。 (Control から継承されます。) |
| OnContextMenuChanged | ContextMenuChanged イベントを発生させます。 (Control から継承されます。) |
| OnContextMenuStripChanged | ContextMenuStripChanged イベントを発生させます。 (Control から継承されます。) |
| OnControlAdded | ControlAdded イベントを発生させます。 (Control から継承されます。) |
| OnControlRemoved | ControlRemoved イベントを発生させます。 (Control から継承されます。) |
| OnCreateControl | CreateControl イベントを発生させます。 (Control から継承されます。) |
| OnCursorChanged | CursorChanged イベントを発生させます。 (Control から継承されます。) |
| OnDockChanged | DockChanged イベントを発生させます。 (Control から継承されます。) |
| OnDoubleClick | DoubleClick イベントを発生させます。 (Control から継承されます。) |
| OnDragDrop | DragDrop イベントを発生させます。 (Control から継承されます。) |
| OnDragEnter | DragEnter イベントを発生させます。 (Control から継承されます。) |
| OnDragLeave | DragLeave イベントを発生させます。 (Control から継承されます。) |
| OnDragOver | DragOver イベントを発生させます。 (Control から継承されます。) |
| OnEnabledChanged | EnabledChanged イベントを発生させます。 (Control から継承されます。) |
| OnEnter | Enter イベントを発生させます。 (Control から継承されます。) |
| OnFontChanged | オーバーライドされます。 FontChanged イベントを発生させます。 |
| OnForeColorChanged | ForeColorChanged イベントを発生させます。 (Control から継承されます。) |
| OnGiveFeedback | GiveFeedback イベントを発生させます。 (Control から継承されます。) |
| OnGotFocus | GotFocus イベントを発生させます。 (Control から継承されます。) |
| OnHandleCreated | オーバーライドされます。 |
| OnHandleDestroyed | HandleDestroyed イベントを発生させます。 (Control から継承されます。) |
| OnHelpRequested | HelpRequested イベントを発生させます。 (Control から継承されます。) |
| OnImeModeChanged | ImeModeChanged イベントを発生させます。 (Control から継承されます。) |
| OnInvalidated | Invalidated イベントを発生させます。 (Control から継承されます。) |
| OnKeyDown | KeyDown イベントを発生させます。 (Control から継承されます。) |
| OnKeyPress | KeyPress イベントを発生させます。 (Control から継承されます。) |
| OnKeyUp | KeyUp イベントを発生させます。 (Control から継承されます。) |
| OnLayout | Layout イベントを発生させます。 (Control から継承されます。) |
| OnLeave | Leave イベントを発生させます。 (Control から継承されます。) |
| OnLocationChanged | LocationChanged イベントを発生させます。 (Control から継承されます。) |
| OnLostFocus | LostFocus イベントを発生させます。 (Control から継承されます。) |
| OnMarginChanged | MarginChanged イベントを発生させます。 (Control から継承されます。) |
| OnMouseCaptureChanged | MouseCaptureChanged イベントを発生させます。 (Control から継承されます。) |
| OnMouseClick | MouseClick イベントを発生させます。 (Control から継承されます。) |
| OnMouseDoubleClick | MouseDoubleClick イベントを発生させます。 (Control から継承されます。) |
| OnMouseDown | MouseDown イベントを発生させます。 (Control から継承されます。) |
| OnMouseEnter | MouseEnter イベントを発生させます。 (Control から継承されます。) |
| OnMouseHover | MouseHover イベントを発生させます。 (Control から継承されます。) |
| OnMouseLeave | MouseLeave イベントを発生させます。 (Control から継承されます。) |
| OnMouseMove | MouseMove イベントを発生させます。 (Control から継承されます。) |
| OnMouseUp | MouseUp イベントを発生させます。 (Control から継承されます。) |
| OnMouseWheel | MouseWheel イベントを発生させます。 (Control から継承されます。) |
| OnMove | Move イベントを発生させます。 (Control から継承されます。) |
| OnNotifyMessage | コントロールに Windows メッセージを通知します。 (Control から継承されます。) |
| OnPaddingChanged | PaddingChanged イベントを発生させます。 (Control から継承されます。) |
| OnPaint | Paint イベントを発生させます。 (Control から継承されます。) |
| OnPaintBackground | コントロールの背景を描画します。 (Control から継承されます。) |
| OnParentBackColorChanged | コントロールのコンテナの BackColor プロパティ値が変更された場合に、BackColorChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentBackgroundImageChanged | コントロールのコンテナの BackgroundImage プロパティ値が変更された場合に、BackgroundImageChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentBindingContextChanged | コントロールのコンテナの BindingContext プロパティ値が変更された場合に、BindingContextChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentChanged | ParentChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentCursorChanged | CursorChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentEnabledChanged | コントロールのコンテナの Enabled プロパティ値が変更された場合に、EnabledChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentFontChanged | コントロールのコンテナの Font プロパティ値が変更された場合に、FontChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentForeColorChanged | コントロールのコンテナの ForeColor プロパティ値が変更された場合に、ForeColorChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentRightToLeftChanged | コントロールのコンテナの RightToLeft プロパティ値が変更された場合に、RightToLeftChanged イベントを発生させます。 (Control から継承されます。) |
| OnParentVisibleChanged | コントロールのコンテナの Visible プロパティ値が変更された場合に、VisibleChanged イベントを発生させます。 (Control から継承されます。) |
| OnPreviewKeyDown | PreviewKeyDown イベントを発生させます。 (Control から継承されます。) |
| OnPrint | Paint イベントを発生させます。 (Control から継承されます。) |
| OnQueryContinueDrag | QueryContinueDrag イベントを発生させます。 (Control から継承されます。) |
| OnRegionChanged | RegionChanged イベントを発生させます。 (Control から継承されます。) |
| OnResize | オーバーライドされます。 |
| OnRightToLeftChanged | RightToLeftChanged イベントを発生させます。 (Control から継承されます。) |
| OnSizeChanged | SizeChanged イベントを発生させます。 (Control から継承されます。) |
| OnStyleChanged | StyleChanged イベントを発生させます。 (Control から継承されます。) |
| OnSystemColorsChanged | SystemColorsChanged イベントを発生させます。 (Control から継承されます。) |
| OnTabIndexChanged | TabIndexChanged イベントを発生させます。 (Control から継承されます。) |
| OnTabStopChanged | TabStopChanged イベントを発生させます。 (Control から継承されます。) |
| OnTextChanged | TextChanged イベントを発生させます。 (Control から継承されます。) |
| OnValidated | Validated イベントを発生させます。 (Control から継承されます。) |
| OnValidating | Validating イベントを発生させます。 (Control から継承されます。) |
| OnVisibleChanged | VisibleChanged イベントを発生させます。 (Control から継承されます。) |
| ProcessCmdKey | コマンド キーを処理します。 (Control から継承されます。) |
| ProcessDialogChar | ダイアログ文字を処理します。 (Control から継承されます。) |
| ProcessDialogKey | ダイアログ キーを処理します。 (Control から継承されます。) |
| ProcessKeyEventArgs | キー メッセージを処理し、適切なコントロール イベントを生成します。 (Control から継承されます。) |
| ProcessKeyMessage | キーボード メッセージを処理します。 (Control から継承されます。) |
| ProcessKeyPreview | キーボード メッセージをプレビューします。 (Control から継承されます。) |
| ProcessMnemonic | ニーモニック文字を処理します。 (Control から継承されます。) |
| RaiseDragEvent | 適切なドラッグ イベントを発生させます。 (Control から継承されます。) |
| RaiseKeyEvent | 適切なキー イベントを発生させます。 (Control から継承されます。) |
| RaiseMouseEvent | 適切なマウス イベントを発生させます。 (Control から継承されます。) |
| RaisePaintEvent | 適切な描画イベントを発生させます。 (Control から継承されます。) |
| RecreateHandle | 強制的にコントロールのハンドルを再作成します。 (Control から継承されます。) |
| ReflectMessage | 指定したメッセージを指定したハンドルにバインドされたコントロールにリフレクションします。 (Control から継承されます。) |
| ResetMouseEventArgs | MouseLeave イベントを処理するためのコントロールをリセットします。 (Control から継承されます。) |
| RtlTranslateAlignment | オーバーロードされます。 現在の配置を適切な配置に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。) |
| RtlTranslateContent | 指定した ContentAlignment を適切な ContentAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。) |
| RtlTranslateHorizontal | 指定した HorizontalAlignment を適切な HorizontalAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。) |
| RtlTranslateLeftRight | 指定した LeftRightAlignment を適切な LeftRightAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。) |
| ScaleControl | オーバーライドされます。 |
| ScaleCore | オーバーライドされます。 |
| Select | オーバーロードされます。 コントロールをアクティブにします。 (Control から継承されます。) |
| SetAutoSizeMode | AutoSize プロパティが有効なときのコントロールの動作を示す値を設定します。 (Control から継承されます。) |
| SetBoundsCore | オーバーライドされます。 ToolBar コントロールの指定境界を設定します。 |
| SetClientSizeCore | コントロールのクライアント領域のサイズを設定します。 (Control から継承されます。) |
| SetStyle | 指定したスタイル ビットを指定した値に設定します。 (Control から継承されます。) |
| SetTopLevel | コントロールをトップレベル コントロールとして設定します。 (Control から継承されます。) |
| SetVisibleCore | コントロールを指定した表示状態に設定します。 (Control から継承されます。) |
| SizeFromClientSize | クライアント領域の高さおよび幅からコントロール全体のサイズを決定します。 (Control から継承されます。) |
| UpdateBounds | オーバーロードされます。 コントロールの範囲を更新します。 (Control から継承されます。) |
| UpdateStyles | 割り当て済みのスタイルを強制的にコントロールに再適用します。 (Control から継承されます。) |
| UpdateZOrder | コントロールを親の z オーダーで更新します。 (Control から継承されます。) |
| WndProc | オーバーライドされます。 |
パブリック イベント
参照- TOOLBARのページへのリンク