TX Text Control .NET for Windows Forms

MiniToolbarContext 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 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.

Syntax

public ContextMenuLocation MiniToolbarContext { get; }

Examples

The following example uses MiniToolbarOpeningEventArgs.MiniToolbarContext while handling MiniToolbarOpening.

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

Limitations

Read only.