MenuItem Class
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXDrawing.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXDrawing.from the setup.Windows. Forms. dll
- Inherits
- Tool
Strip Menu Item - Menu
Item
- Tool
- Implements
- IComponent, IDisposable, IBindable
Component
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, IBindableComponentPublic Class MenuItem
Inherits ToolStripMenuItem
Implements IComponent, IDisposable, IBindableComponentExamples
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;Dim menuItem As New TXTextControl.Drawing.MenuItem()
menuItem.Enabled = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| MenuItem | Not described in the reference. public MenuItem(); |
Properties
| Property | Description |
|---|---|
| BindingContext | Not described in the reference. public BindingContext BindingContext { get; set; } |
| DataBindings | Not described in the reference. public ControlBindingsCollection DataBindings { get; } |