# TextMiniToolbar Class

> The TextMiniToolbar class is a mini toolbar that appears when ShowMiniToolbar property is set to MiniToolbarButton.LeftButton, MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton, the left or right mouse button is released and the current context is selected text (ContextMenuLocation.TextSelection), text at the input position (ContextMenuLocation.TextInputPosition) or an input position inside a table (ContextMenuLocation.Table). The TextMiniToolbar.RibbonGroups collection contains context sensitive items which can be altered, extended or replaced during the TextControl.TextMiniToolbarInitialized event. An TextMiniToolbar is inherited from the MiniToolbar class. The following describes only the properties, methods and events defined through the TextMiniToolbar class.

- **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` › `TXTextControl.MiniToolbar`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextMiniToolbar Class
- **862 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/llms-full.txt

---

### Description

The TextMiniToolbar class is a mini toolbar that appears when [ShowMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/showminitoolbar-property/llms-full.txt) property is set to `MiniToolbarButton.LeftButton`, `MiniToolbarButton.RightButton` or `MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton`, the left or right mouse button is released and the [current context](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbarcontext-property/llms-full.txt) is selected text (`ContextMenuLocation.TextSelection`), text at the input position (`ContextMenuLocation.TextInputPosition`) or an input position inside a table (`ContextMenuLocation.Table`). The [TextMiniToolbar.RibbonGroups](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/ribbongroups-property/llms-full.txt) collection contains context sensitive items which can be altered, extended or replaced during the [TextControl.TextMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textminitoolbarinitialized-event/llms-full.txt) event. An TextMiniToolbar is inherited from the [MiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/llms-full.txt) class. The following describes only the properties, methods and events defined through the TextMiniToolbar class.

### Syntax

```csharp
public class TextMiniToolbar : MiniToolbar
```

```vbnet
Public Class TextMiniToolbar
    Inherits MiniToolbar
```

### Examples

The following example includes the ribbon groups value from a Text Mini Toolbar object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Ribbon Groups: {textMiniToolbar.RibbonGroups}");
Console.WriteLine("Text Mini Toolbar is ready for use.");
```

```vbnet
Console.WriteLine($"Ribbon Groups: {textMiniToolbar.RibbonGroups}")
Console.WriteLine("Text Mini Toolbar is ready for use.")
```

---

## In This Section

- [TextMiniToolbar.FindItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/finditem-method/llms-full.txt): Finds a control that has the provided TextMiniToolbar.RibbonItem identifier.
- [TextMiniToolbar.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/ribbonitem-enumeration/llms-full.txt): Each RibbonItem represents an item in a TextMiniToolbar. The corresponding string of a RibbonItem is the same as the item's Name property. The RibbonItem enumeration can be used with the FindItem method to get an item and manipulate it.

---

## Nearby

- **Previous:** [TextFrameInsertionMode Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframeinsertionmode/enumeration/llms-full.txt)
- **Next:** [TextMiniToolbar.FindItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/finditem-method/llms-full.txt)
