# ObjectMiniToolbar Class

> The ObjectMiniToolbar class is a mini toolbar that appears when the ShowMiniToolbar property is set to MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton, the right mouse button is released and the current context is a selected text frame, drawing frame or barcode frame (ContextMenuLocation.SelectedFrame). Its RibbonGroups collection contains context sensitive items which can be altered, extended or replaced during the TextControl.ObjectMiniToolbarInitialized event. An ObjectMiniToolbar is inherited from the MiniToolbar class. The following describes only the properties, methods and events defined through the ObjectMiniToolbar 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 > ObjectMiniToolbar Class
- **836 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/llms-full.txt

---

### Description

The ObjectMiniToolbar class is a mini toolbar that appears when the [ShowMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/showminitoolbar-property/llms-full.txt) property is set to `MiniToolbarButton.RightButton` or `MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton`, the 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 a selected text frame, drawing frame or barcode frame (`ContextMenuLocation.SelectedFrame`). Its [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.ObjectMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/objectminitoolbarinitialized-event/llms-full.txt) event. An ObjectMiniToolbar 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 ObjectMiniToolbar class.

### Syntax

```csharp
public class ObjectMiniToolbar : MiniToolbar
```

```vbnet
Public Class ObjectMiniToolbar
    Inherits MiniToolbar
```

### Examples

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

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

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

---

## In This Section

- [ObjectMiniToolbar.FindItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/finditem-method/llms-full.txt): Finds a control that has the provided ObjectMiniToolbar.RibbonItem identifier.
- [ObjectMiniToolbar.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/ribbonitem-enumeration/llms-full.txt): Each RibbonItem represents an item in a ObjectMiniToolbar. 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:** [NumberFormatException.CharacterIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/numberformatexception/characterindex-property/llms-full.txt)
- **Next:** [ObjectMiniToolbar.FindItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/finditem-method/llms-full.txt)
