# MiniToolbarOpeningEventArgs.MiniToolbarContext Property

> Gets the context in the document for which a mini toolbar will be opened. The content, which will be shown, depends on this context. The property value can be a combination (bitwise or) of the ContextMenuLocation values.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > MiniToolbarOpeningEventArgs.MiniToolbarContext Property
- **361 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbarcontext-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbarcontext-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbarcontext-property/llms-full.txt

---

### Description

Gets the context in the document for which a mini toolbar will be opened. The content, which will be shown, depends on this context. The property value can be a combination (bitwise or) of the [ContextMenuLocation](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/contextmenulocation/enumeration/llms-full.txt) values.

### Syntax

```csharp
public ContextMenuLocation MiniToolbarContext { get; }
```

```vbnet
Public ReadOnly Property MiniToolbarContext As ContextMenuLocation
```

### Examples

The following example uses `MiniToolbarOpeningEventArgs.MiniToolbarContext` while handling `MiniToolbarOpening`.

```csharp
textControl.MiniToolbarOpening += (_, e) =>
{
    Console.WriteLine($"Mini Toolbar Context: {e.MiniToolbarContext}");
};
```

```vbnet
AddHandler textControl.MiniToolbarOpening,
    Sub(sender, e)
        Console.WriteLine($"Mini Toolbar Context: {e.MiniToolbarContext}")
    End Sub
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [MiniToolbarOpeningEventArgs.MiniToolbar Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbar-property/llms-full.txt)
- **Next:** [MisspelledWord Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledword/llms-full.txt)
