MenuItem Class
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WPF. SDK
- Assembly
TXSpell.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WPF. SDK TXSpell.from the setup.WPF. dll
- Inherits
- System.
Windows. Controls. Menu Item - Menu
Item
- System.
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.MenuItemPublic Class MenuItem
Inherits System.Windows.Controls.MenuItemExamples
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. |