TX Text Control .NET for Windows Forms

ObjectMiniToolbarInitialized Event

Event|Introduced in 25.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Occurs immediately after the built-in ObjectMiniToolbar was initialized. The event handler receives an argument of type MiniToolbarInitializedEventArgs containing the ObjectMiniToolbar that was created. The event is raised if the ShowMiniToolbar property is set to MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton.

Syntax

public event MiniToolbarInitializedEventHandler ObjectMiniToolbarInitialized;

Examples

The following example records useful context when object mini toolbar initialized occurs.

textControl.ObjectMiniToolbarInitialized += (sender, e) =>
{
    Console.WriteLine($"Object Mini Toolbar Initialized at {DateTime.Now:u}");
};

Remarks

It is recommended to handle this event to determine the structure of the ObjectMiniToolbar. Toggling the visibility of items should be handled by the TextControl.MiniToolbarOpening event.