MiniToolbar Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
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.
Syntax
public MiniToolbar MiniToolbar { get; set; }Public Property MiniToolbar As MiniToolbarExamples
The following example uses MiniToolbarOpeningEventArgs.MiniToolbar while handling MiniToolbarOpening.
textControl.MiniToolbarOpening += (_, e) =>
{
e.MiniToolbar?.Select();
};AddHandler textControl.MiniToolbarOpening,
Sub(sender, e)
If e.MiniToolbar IsNot Nothing Then e.MiniToolbar.Select()
End SubRemarks
If the MiniToolbar represents an object of type TextMiniToolbar or ObjectMiniToolbar it is recommended to use this property for toggling the visibility of their added or built-in context sensitive items. Determining the structure of these items should be handled by the TextControl.TextMiniToolbarInitialized or TextControl.ObjectMiniToolbarInitialized event.