dotnet add package TXTextControl.TextControl.WinForms.SDK.NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
The TextMiniToolbar class is a mini toolbar that appears when ShowMiniToolbar property is set to MiniToolbarButton.LeftButton, MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton, the left or right mouse button is released and the current context is selected text (ContextMenuLocation.TextSelection), text at the input position (ContextMenuLocation.TextInputPosition) or an input position inside a table (ContextMenuLocation.Table). The TextMiniToolbar.RibbonGroups collection contains context sensitive items which can be altered, extended or replaced during the TextControl.TextMiniToolbarInitialized event. An TextMiniToolbar is inherited from the MiniToolbar class. The following describes only the properties, methods and events defined through the TextMiniToolbar class.
Syntax
publicclassTextMiniToolbar : MiniToolbar
PublicClass TextMiniToolbar
Inherits MiniToolbar
Examples
The following example includes the ribbon groups value from a Text Mini Toolbar object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Ribbon Groups: {textMiniToolbar.RibbonGroups}");
Console.WriteLine("Text Mini Toolbar is ready for use.");
Console.WriteLine($"Ribbon Groups: {textMiniToolbar.RibbonGroups}")
Console.WriteLine("Text Mini Toolbar is ready for use.")
Gets a collection of all ribbon groups in a MiniToolbar. A RibbonGroup then hosts controls that represent application commands. The property value is of the type RibbonGroupCollection. (Inherited from MiniToolbar.)
Each RibbonItem represents an item in a TextMiniToolbar. The corresponding string of a RibbonItem is the same as the item's Name property. The RibbonItem enumeration can be used with the FindItem method to get an item and manipulate it.