MenuItem Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WinForms. SDK
- Assembly
TXSpell.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WinForms. SDK TXSpell.from the setup.Windows. Forms. dll
- Inherits
- Tool
Strip Menu Item - Menu
Item
- Tool
Description
The MenuItem class provides the possibility to build a menu strip with the most common TX Spell .NET features. An array of these items is created by calling the TXSpellChecker.GetMenuItems method. Clicking a MenuItem results in a specific action that depends on the Proofing.MenuItem.Type Property. The class is inherited from the System.Windows.Forms.ToolStripMenuItem class.
Syntax
public sealed class MenuItem : ToolStripMenuItemPublic NotInheritable Class MenuItem
Inherits ToolStripMenuItemExamples
The following example includes the type value from a Menu Item object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Type: {menuItem.Type}");
Console.WriteLine("Menu Item is ready for use.");Console.WriteLine($"Type: {menuItem.Type}")
Console.WriteLine("Menu Item is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Type | Gets the type of the MenuItem. |