TX Spell .NET for WPF

MenuItem Class

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

Description

The MenuItem class provides a method 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 WPF.Proofing.MenuItem.Type property. The class is inherited from the System.Windows.Controls.MenuItem class.

Syntax

public class MenuItem : System.Windows.Controls.MenuItem

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.