ToolStrip 控制項 (Windows Form)ToolStrip Control (Windows Forms)

ToolStrip 控制項可以在 Windows Forms 應用程式中裝載功能表、控制項和使用者控制項的工具列。ToolStrip controls are toolbars that can host menus, controls, and user controls in your Windows Forms applications.

本節內容In This Section

ToolStrip 控制項概觀ToolStrip Control Overview
說明此控制項是什麼,並說明其重要功能與屬性。Explains what this control is and its key features and properties.

作法:管理 ToolStrip 溢位How to: Manage ToolStrip Overflow
示範如何啟用溢位功能和控制溢位的行為。Demonstrates how to enable overflow functionality and control overflow behavior.

作法:在執行階段重新排列 ToolStrip 項目的順序How to: Enable Reordering of ToolStrip Items at Run Time
示範如何啟用 ToolStripItem 控制項的執行階段重新排列。Demonstrates how to enable run-time rearrangement of ToolStripItem controls.

作法:啟用 ToolStrip 控制項的自動完成How to: Enable AutoComplete in ToolStrip Controls
示範在 ToolStripComboBox 中的自動完成功能。Demonstrates automatic completion functionality in a ToolStripComboBox.

作法:變更 Windows Forms 中 ToolStrip 項目的間距和對齊方式How to: Change the Spacing and Alignment of ToolStrip Items in Windows Forms
描述在 ToolStrip 上排列 ToolStripItem 的各種方式。Describes various ways to arrange ToolStripItems on the ToolStrip.

作法:變更 Windows Forms 中 ToolStrip 文字和影像的外觀How to: Change the Appearance of ToolStrip Text and Images in Windows Forms
描述如何在 ToolStripItem 控制項上定義及修改文字和影像的排列方式。Describes how to define and modify the arrangement of text and images on ToolStripItem controls.

作法:使用 ToolStripControlHost 包裝 Windows Forms 控制項How to: Wrap a Windows Forms Control with ToolStripControlHost
示範在 ToolStripControlHost 中裝載 MonthCalendar 控制項。Demonstrates hosting a MonthCalendar control in a ToolStripControlHost.

如何:在 Windows Forms 中建立並設定 ToolStrip 控制項的自訂轉譯器How to: Create and Set a Custom Renderer for the ToolStrip Control in Windows Forms
描述如何在 ToolStrip 控制項中達到標準和自訂繪製。Describes how to achieve standard and customized painting in ToolStrip controls.

作法:自訂繪製 ToolStrip 控制項How to: Custom Draw a ToolStrip Control
描述在 ToolStrip 控制項中自訂 (擁有者) 繪製的各個層面。Describes various aspects of custom (owner) drawing in ToolStrip controls.

作法:在 ToolStrip 控制項中建立切換按鈕How to: Create Toggle Buttons in ToolStrip Controls
描述如何建立切換的 ToolStripButtonDescribes the creation of a toggling ToolStripButton.

作法:在 ToolStrip 控制項使用工具提示How to: Use ToolTips in ToolStrip Controls
描述 ToolStrip 項目的定義工具提示。Describes defining tool tips for ToolStrip items.

作法:將 ToolStrip 移出 ToolStripContainer 並移至表單上How to: Move a ToolStrip Out of a ToolStripContainer onto a Form
描述如何擁有沒有容器但有表單的 ToolStripDescribes how to have a ToolStrip with no container but a form.

作法:將 ToolStripItem 放在 ToolStrip 上How to: Position a ToolStripItem on a ToolStrip
描述如何將 ToolStripButton 置於 ToolStrip 的最左邊或最右邊。Describes how to position a ToolStripButton on at the leftmost or rightmost end of a ToolStrip.

作法:讓 TAB 鍵移至 ToolStrip 控制項之外How to: Enable the TAB Key to Move Out of a ToolStrip Control
描述如何在 ToolStrip 之中定位,並且將定位跳到定位順序中的下一個控制項。Describes how to tab within a ToolStrip and tab out of it to the next control in the tab order.

作法:偵測滑鼠指標何時移至 ToolStripItemHow to: Detect When the Mouse Pointer Is Over a ToolStripItem
描述如何設定 ToolStrip 項目,讓它們偵測到滑鼠何時停留,而不需要同步處理各種滑鼠事件。Describes how to set up ToolStrip items so that they detect when the mouse is over them without having to synchronize various mouse events.

作法:建立具有 ToolStripPanel 控制項的 MDI 表單How to: Create an MDI Form with ToolStripPanel Controls
描述如何以 ToolStripPanel 控制項建立多重文件介面 (MDI) 表單。Describes how to create a multiple document interface (MDI) form with ToolStripPanel controls.

作法:建立具有功能表合併和 ToolStrip 控制項的 MDI 表單How to: Create an MDI Form with Menu Merging and ToolStrip Controls
描述如何建立支援 ToolStrip 控制項和合併功能表的 MDI 表單。Describes how to create an MDI form that supports ToolStrip controls and menu merging.

作法:建立專業樣式的 ToolStrip 控制項How to: Create a Professionally Styled ToolStrip Control
說明如何使用 ToolStripProfessionalRenderer 類別來建立複合控制項,以模擬 Microsoft® Outlook®所提供的 導覽窗格Describes how to use the ToolStripProfessionalRenderer class to create a composite control that mimics the Navigation Pane provided by Microsoft® Outlook®.

作法:實作自訂的 ToolStripRendererHow to: Implement a Custom ToolStripRenderer
描述如何實作衍生自 ToolStripRenderer 的類別,自訂 ToolStrip 控制項的外觀。Describes how to customize the appearance of a ToolStrip control by implementing a class that derives from ToolStripRenderer.

參考Reference

ToolStrip 類別ToolStrip class
說明這個類別,並且提供其所有成員的連結。Describes this class and has links to all its members.

ToolStrip
描述 ToolStrip 類別並且連結到它所有的成員。Describes the ToolStrip class and has links to all its members.

ToolStripItem
描述 ToolStripItem 類別並且連結到它所有的成員。Describes the ToolStripItem class and has links to all its members.

在 Windows Form 上使用的控制項Controls to Use on Windows Forms
提供 Windows Form 控制項的完整清單,以及其用法的資訊連結。Provides a complete list of Windows Forms controls, with links to information on their use.