# MiniToolbar Class

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 25.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Inherits:** `System.Windows.Forms.ToolStripDropDownMenu` › `TXTextControl.Windows.Forms.Ribbon.RibbonDropDown`
- **Derived:** `TXTextControl.ObjectMiniToolbar`, `TXTextControl.TextMiniToolbar`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > MiniToolbar Class
- **776 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/llms-full.txt

---

### Description

The MiniToolbar class is the base class of the built-in mini toolbars [TextMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/llms-full.txt) and [ObjectMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/llms-full.txt) of a Windows Forms [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt). A mini toolbar is a contextual toolbar showing elements to format the document depending on the [current context](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbarcontext-property/llms-full.txt). An instance of a MiniToolbar can be assigned to the [MiniToolbarInitializedEventArgs.MiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbarinitializedeventargs/minitoolbar-property/llms-full.txt) or [MiniToolbarOpeningEventArgs.MiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbar-property/llms-full.txt) property when the corresponding [TextControl.TextMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textminitoolbarinitialized-event/llms-full.txt), [TextControl.ObjectMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/objectminitoolbarinitialized-event/llms-full.txt) or [TextControl.MiniToolbarOpening](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/minitoolbaropening-event/llms-full.txt) 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

```csharp
public class MiniToolbar : RibbonDropDown
```

```vbnet
Public Class MiniToolbar
    Inherits RibbonDropDown
```

### Examples

The following example creates a Mini Toolbar instance and configures its layout style setting for a document workflow.

```csharp
using MiniToolbar miniToolbar = new();
miniToolbar.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.StackWithOverflow;
```

```vbnet
Dim miniToolbar As New MiniToolbar()
miniToolbar.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.StackWithOverflow
```

---

## In This Section

- [MiniToolbar Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/constructor/llms-full.txt): Initializes a new instance of the MiniToolbar class.
- [MiniToolbar.RibbonGroups Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/ribbongroups-property/llms-full.txt): 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.

---

## Nearby

- **Previous:** [MainText.TextFrames Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/maintext/textframes-property/llms-full.txt)
- **Next:** [MiniToolbar Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/constructor/llms-full.txt)
