MiniToolbarOpeningEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
- Inherits
- Cancel
Event Args - Mini
Toolbar Opening Event Args
- Cancel
Description
The MiniToolbarOpeningEventArgs class provides data for the TextControl.MiniToolbarOpening event of a Windows Forms TextControl. This event occurs to handle displaying context sensitive mini toolbars. The MiniToolbarContext property informs for which context the mini-tooolbar will be opened. Depending on that context the pre-defined mini toolbar TextMiniToolbar or ObjectMiniToolbar are provided by the MiniToolbar property.
Syntax
public class MiniToolbarOpeningEventArgs : CancelEventArgsPublic Class MiniToolbarOpeningEventArgs
Inherits CancelEventArgsExamples
The following example uses MiniToolbarOpeningEventArgs.MiniToolbarContext while handling MiniToolbarOpening.
textControl.MiniToolbarOpening += (_, e) =>
{
Console.WriteLine($"Mini Toolbar Context: {e.MiniToolbarContext}");
};AddHandler textControl.MiniToolbarOpening,
Sub(sender, e)
Console.WriteLine($"Mini Toolbar Context: {e.MiniToolbarContext}")
End SubMembers
Properties
| Property | Description |
|---|---|
| Location | Gets the location, in pixels, where the mini toolbar is displayed. The coordinates are relative to the top-left corner of the screen. |
| MiniToolbar | Gets or sets the mini toolbar, which will be shown. To completely suppress a mini toolbar, the Cancel Property must be set to true. The property's value is of the type MiniToolbar. |
| MiniToolbarContext | 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. |