TextMiniToolbarInitialized Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Occurs immediately after the built-in TextMiniToolbar was initialized. The event handler receives an argument of type MiniToolbarInitializedEventArgs containing the TextMiniToolbar that was created. The event is raised if the ShowMiniToolbar property is set to MiniToolbarButton.LeftButton, MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton.
Syntax
public event MiniToolbarInitializedEventHandler TextMiniToolbarInitialized;Public Event TextMiniToolbarInitialized As MiniToolbarInitializedEventHandlerExamples
The following example records useful context when text mini toolbar initialized occurs.
textControl.TextMiniToolbarInitialized += (sender, e) =>
{
Console.WriteLine($"Text Mini Toolbar Initialized at {DateTime.Now:u}");
};AddHandler textControl.TextMiniToolbarInitialized,
Sub(sender, e)
Console.WriteLine($"Text Mini Toolbar Initialized at {DateTime.Now:u}")
End SubRemarks
It is recommended to handle this event to determine the structure of the TextMiniToolbar. Toggling the visibility of items should be handled by the TextControl.MiniToolbarOpening event.