MiniToolbar Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
- Inherits
- Tool
Strip Drop Down Menu - RibbonDropDown
- Mini
Toolbar
- Tool
- Derived
- Object
Mini , TextToolbar Mini Toolbar
Description
The MiniToolbar class is the base class of the built-in mini toolbars TextMiniToolbar and ObjectMiniToolbar of a Windows Forms TextControl. A mini toolbar is a contextual toolbar showing elements to format the document depending on the current context. An instance of a MiniToolbar can be assigned to the MiniToolbarInitializedEventArgs.MiniToolbar or MiniToolbarOpeningEventArgs.MiniToolbar property when the corresponding TextControl.TextMiniToolbarInitialized, TextControl.ObjectMiniToolbarInitialized or TextControl.MiniToolbarOpening event is raised. It is inherited from the System.Windows.Forms.ToolStripDropDown class. The following describes only the properties, methods and events defined through the MiniToolbar class. For a list of properties, methods and events inherited from the System.Windows.Forms.ToolStripDropDown class see the .NET Framework reference.
Syntax
public class MiniToolbar : RibbonDropDownPublic Class MiniToolbar
Inherits RibbonDropDownExamples
The following example creates a Mini Toolbar instance and configures its layout style setting for a document workflow.
using MiniToolbar miniToolbar = new();
miniToolbar.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.StackWithOverflow;Dim miniToolbar As New MiniToolbar()
miniToolbar.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.StackWithOverflowMembers
Constructors
| Constructor | Description |
|---|---|
| MiniToolbar | Initializes a new instance of the MiniToolbar class. |
Properties
| Property | Description |
|---|---|
| RibbonGroups | Gets a collection of all ribbon groups in a MiniToolbar. A RibbonGroup then hosts controls that represent application commands. The property value is of the type RibbonGroupCollection. |