dotnet add package TXTextControl.TextControl.WinForms.SDK.NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
The ObjectMiniToolbar class is a mini toolbar that appears when the ShowMiniToolbar property is set to MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton, the right mouse button is released and the current context is a selected text frame, drawing frame or barcode frame (ContextMenuLocation.SelectedFrame). Its RibbonGroups collection contains context sensitive items which can be altered, extended or replaced during the TextControl.ObjectMiniToolbarInitialized event. An ObjectMiniToolbar is inherited from the MiniToolbar class. The following describes only the properties, methods and events defined through the ObjectMiniToolbar class.
The following example includes the ribbon groups value from an Object Mini Toolbar object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Ribbon Groups: {objectMiniToolbar.RibbonGroups}");
Console.WriteLine("Object Mini Toolbar is ready for use.");
Console.WriteLine($"Ribbon Groups: {objectMiniToolbar.RibbonGroups}")
Console.WriteLine("Object 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 ObjectMiniToolbar. 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.