TX Text Control .NET for Windows Forms

MiniToolbar Property

Property|Introduced in 25.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

The following example uses MiniToolbarInitializedEventArgs.MiniToolbar while handling TextMiniToolbarInitialized.

textControl.TextMiniToolbarInitialized += (_, e) =>
{
    e.MiniToolbar?.Select();
};

Remarks

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.