# TextMiniToolbar Class

> The WPF.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 FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it during the WPF.TextControl.TextMiniToolbarInitialized event. An TextMiniToolbar is inherited from the WPF.MiniToolbar class. The following describes only the properties, methods and events defined through the TextMiniToolbar class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 25.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Inherits:** `System.Windows.Controls.Primitives.Popup` › `TXTextControl.WPF.MiniToolbar`
- **Implements:** `System.Windows.Markup.IComponentConnector`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextMiniToolbar Class
- **640 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textminitoolbar/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textminitoolbar/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textminitoolbar/llms-full.txt

---

### Description

The WPF.TextMiniToolbar class is a mini toolbar that appears when [ShowMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/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-wpf/reference/txtextcontrol/wpf-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 `FrameworkElement.FindName` method can be used to get a certain item and manipulate, move or delete it during the [WPF.TextControl.TextMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textminitoolbarinitialized-event/llms-full.txt) event. An TextMiniToolbar is inherited from the [WPF.MiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-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 container value from a Text Mini Toolbar object in application diagnostics. The created object is then available to the surrounding document workflow.

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

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

---

## In This Section

- [TextMiniToolbar.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textminitoolbar/ribbonitem-enumeration/llms-full.txt): Each RibbonItem represents an item in a WPF.TextMiniToolbar. The corresponding string of a RibbonItem is the same as the item's Name property. The string can be used with the FrameworkElement.FindName method to get the item and manipulate, move or delete it.

---

## Nearby

- **Previous:** [TextControlToolBarPresenter Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontroltoolbarpresenter/llms-full.txt)
- **Next:** [TextMiniToolbar.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textminitoolbar/ribbonitem-enumeration/llms-full.txt)
