TX Text Control .NET for Windows Forms

TextMiniToolbar Class

Class|Introduced in 25.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. ToolStripDropDownMenu
  2. RibbonDropDown
  3. MiniToolbar
  4. TextMiniToolbar

Description

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

public class TextMiniToolbar : 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.");

Members

Constructors

ConstructorDescription
MiniToolbarInitializes a new instance of the MiniToolbar class. (Inherited from MiniToolbar.)

Properties

PropertyDescription
RibbonGroupsGets 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.)

Methods

MethodDescription
FindItemFinds a control that has the provided TextMiniToolbar.RibbonItem identifier.

Enumerations

EnumerationDescription
RibbonItemEach 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.