TX Text Control .NET for Windows Forms

MiniToolbar Class

Class|Introduced in 25.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. ToolStripDropDownMenu
  2. RibbonDropDown
  3. MiniToolbar
Derived
ObjectMiniToolbar, TextMiniToolbar

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 : RibbonDropDown

Examples

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;

Members

Constructors

ConstructorDescription
MiniToolbarInitializes a new instance of the MiniToolbar class.

Properties

PropertyDescription
RibbonGroupsGets 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.