MiniToolbar Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Considering which event (TextControl.TextMiniToolbarInitialized or TextControl.ObjectMiniToolbarInitialized) is raised the property provides an object of type TextMiniToolbar or ObjectMiniToolbar that can be altered, extended or completely replaced. The property value is of the type MiniToolbar.
Syntax
public MiniToolbar MiniToolbar { get; set; }Public Property MiniToolbar As MiniToolbarExamples
The following example uses MiniToolbarInitializedEventArgs.MiniToolbar while handling TextMiniToolbarInitialized.
textControl.TextMiniToolbarInitialized += (_, e) =>
{
e.MiniToolbar?.Select();
};AddHandler textControl.TextMiniToolbarInitialized,
Sub(sender, e)
If e.MiniToolbar IsNot Nothing Then e.MiniToolbar.Select()
End SubRemarks
Additional context sensitive items should only be added with this property by using the corresponding RibbonGroupCollection or RibbonItemsCollections. For toggling the visibility of items it is recommended to access the MiniToolbarOpeningEventArgs.MiniToolbar property when the TextControl.MiniToolbarOpening event is raised.