TX Text Control .NET for Windows Forms

MenuItem Class

Class|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDrawing.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXDrawing.Windows.Forms.dll from the setup.
Inherits
  1. ToolStripMenuItem
  2. MenuItem
Implements
IComponent, IDisposable, IBindableComponent

Description

The Drawing.MenuItem class represents a bindable Windows Forms ToolStripMenuItem. The MenuItem class is inherited from the System.Windows.Forms.ToolStripMenuItem class and implements the System.Windows.Forms.IBindableComponent interface. The following describes only the properties, methods and events defined through the MenuItem class. For a list of properties, methods and events inherited from the System.Windows.Forms.ToolStripMenuItem calss and System.Windows.Forms.IBindableComponent interface see the .NET Framework reference.

Syntax

public class MenuItem : ToolStripMenuItem, IComponent, IDisposable, IBindableComponent

Examples

The following example creates a Menu Item instance and configures its enabled setting for a document workflow.

using TXTextControl.Drawing.MenuItem menuItem = new();
menuItem.Enabled = true;

Members

Constructors

ConstructorDescription
MenuItemNot described in the reference. public MenuItem();

Properties

PropertyDescription
BindingContextNot described in the reference. public BindingContext BindingContext { get; set; }
DataBindingsNot described in the reference. public ControlBindingsCollection DataBindings { get; }