MiniToolbarContext Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public ReadOnly Property MiniToolbarContext As ContextMenuLocationExamples
The following example uses MiniToolbarOpeningEventArgs.MiniToolbarContext while handling MiniToolbarOpening.
textControl.MiniToolbarOpening += (_, e) =>
{
Console.WriteLine($"Mini Toolbar Context: {e.MiniToolbarContext}");
};AddHandler textControl.MiniToolbarOpening,
Sub(sender, e)
Console.WriteLine($"Mini Toolbar Context: {e.MiniToolbarContext}")
End SubLimitations
Read only.