# MiniToolbarInitializedEventArgs Class

> The MiniToolbarInitializedEventArgs class provides data for the TextControl.TextMiniToolbarInitialized or TextControl.ObjectMiniToolbarInitialized event of a Windows Forms TextControl just after the pre-defined TextMiniToolbar or ObjectMiniToolbar was created. Its MiniToolbar property provides the corresponding mini toolbar, which can be altered, extended or completely replaced to determine its basic structure.

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

---

### Description

The MiniToolbarInitializedEventArgs class provides data for the [TextControl.TextMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textminitoolbarinitialized-event/llms-full.txt) or [TextControl.ObjectMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/objectminitoolbarinitialized-event/llms-full.txt) event of a Windows Forms [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt) just after the pre-defined [TextMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/llms-full.txt) or [ObjectMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/llms-full.txt) was created. Its [MiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbarinitializedeventargs/minitoolbar-property/llms-full.txt) property provides the corresponding mini toolbar, which can be altered, extended or completely replaced to determine its basic structure.

### Syntax

```csharp
public class MiniToolbarInitializedEventArgs : EventArgs
```

```vbnet
Public Class MiniToolbarInitializedEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `MiniToolbarInitializedEventArgs.MiniToolbar` while handling `TextMiniToolbarInitialized`.

```csharp
textControl.TextMiniToolbarInitialized += (_, e) =>
{
    e.MiniToolbar?.Select();
};
```

```vbnet
AddHandler textControl.TextMiniToolbarInitialized,
    Sub(sender, e)
        If e.MiniToolbar IsNot Nothing Then e.MiniToolbar.Select()
    End Sub
```

---

## In This Section

- [MiniToolbarInitializedEventArgs.MiniToolbar Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbarinitializedeventargs/minitoolbar-property/llms-full.txt): Considering which event (TextControl.TextMiniToolbarInitialized or TextControl.ObjectMiniToolbarInitialized) is raised the property provides an object of type TextMiniToolbar or ObjectMiniToolbar that can be altered, extended or completely replaced. The property value is of the type MiniToolbar.

---

## Nearby

- **Previous:** [MiniToolbar.RibbonGroups Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/ribbongroups-property/llms-full.txt)
- **Next:** [MiniToolbarInitializedEventArgs.MiniToolbar Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbarinitializedeventargs/minitoolbar-property/llms-full.txt)
