# 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). The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it during the WPF.TextControl.ObjectMiniToolbarInitialized event. An ObjectMiniToolbar is inherited from the WPF.MiniToolbar class. The following describes only the properties, methods and events defined through the ObjectMiniToolbar 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 > ObjectMiniToolbar Class
- **615 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/objectminitoolbar/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/objectminitoolbar/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/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-wpf/reference/txtextcontrol-wpf/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-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbarcontext-property/llms-full.txt) is a selected text frame, drawing frame or barcode frame (`ContextMenuLocation.SelectedFrame`). The `FrameworkElement.FindName` method can be used to get a certain item and manipulate, move or delete it during the [WPF.TextControl.ObjectMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/objectminitoolbarinitialized-event/llms-full.txt) event. An ObjectMiniToolbar 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 ObjectMiniToolbar class.

### Syntax

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

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

### Examples

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

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

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

---

## In This Section

- [ObjectMiniToolbar.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/objectminitoolbar/ribbonitem-enumeration/llms-full.txt): Each RibbonItem represents an item in a WPF.ObjectMiniToolbar. 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:** [WPF.MiniToolbarOpeningEventArgs.VerticalOffset Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/verticaloffset-property/llms-full.txt)
- **Next:** [ObjectMiniToolbar.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/objectminitoolbar/ribbonitem-enumeration/llms-full.txt)
