TX Text Control .NET for Windows Forms

MiniToolbarOpeningEventArgs 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. CancelEventArgs
  2. MiniToolbarOpeningEventArgs

Description

The MiniToolbarOpeningEventArgs class provides data for the TextControl.MiniToolbarOpening event of a Windows Forms TextControl. This event occurs to handle displaying context sensitive mini toolbars. The MiniToolbarContext property informs for which context the mini-tooolbar will be opened. Depending on that context the pre-defined mini toolbar TextMiniToolbar or ObjectMiniToolbar are provided by the MiniToolbar property.

Syntax

public class MiniToolbarOpeningEventArgs : CancelEventArgs

Examples

The following example uses MiniToolbarOpeningEventArgs.MiniToolbarContext while handling MiniToolbarOpening.

textControl.MiniToolbarOpening += (_, e) =>
{
    Console.WriteLine($"Mini Toolbar Context: {e.MiniToolbarContext}");
};

Members

Properties

PropertyDescription
LocationGets the location, in pixels, where the mini toolbar is displayed. The coordinates are relative to the top-left corner of the screen.
MiniToolbarGets 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.
MiniToolbarContextGets the context in the document for which a mini toolbar will be opened. The content, which will be shown, depends on this context. The property value can be a combination (bitwise or) of the ContextMenuLocation values.