TX Spell .NET for Windows Forms

MenuItem Class

Class|Introduced in 3.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.Windows.Forms.dll
Install
dotnet add package TXTextControl.TXSpell.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXSpell.Windows.Forms.dll from the setup.
Inherits
  1. ToolStripMenuItem
  2. MenuItem

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 : ToolStripMenuItem

Examples

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.");

Members

Properties

PropertyDescription
TypeGets the type of the MenuItem.