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

Gets or sets the mini toolbar, which will be shown. To completely suppress a mini toolbar, the Cancel Property must be set to true. The property's value is of the type MiniToolbar.

Syntax

public MiniToolbar MiniToolbar { get; set; }

Examples

The following example uses MiniToolbarOpeningEventArgs.MiniToolbar while handling MiniToolbarOpening.

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

Remarks

If the MiniToolbar represents an object of type TextMiniToolbar or ObjectMiniToolbar it is recommended to use this property for toggling the visibility of their added or built-in context sensitive items. Determining the structure of these items should be handled by the TextControl.TextMiniToolbarInitialized or TextControl.ObjectMiniToolbarInitialized event.