ShapesContextMenuStrip 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
- Context
Menu Strip - Shapes
Context Menu Strip
- Context
Description
The Drawing.ShapesContextMenuStrip class represents the default context menu of the Windows Forms TXDrawingControl.
Syntax
public class ShapesContextMenuStrip : ContextMenuStripPublic Class ShapesContextMenuStrip
Inherits ContextMenuStripExamples
The following example includes the selected shapes menu items value from a Shapes Context Menu Strip object in application diagnostics. The change is then applied to the active document or user interface.
Console.WriteLine($"Selected Shapes Menu Items: {shapesContextMenuStrip.SelectedShapesMenuItems}");
shapesContextMenuStrip.Update();Console.WriteLine($"Selected Shapes Menu Items: {shapesContextMenuStrip.SelectedShapesMenuItems}")
shapesContextMenuStrip.Update()Members
Properties
| Property | Description |
|---|---|
| SelectedShapesMenuItems | Returns an array of System.Windows.Forms.ToolStripItem objects that represents those items which are displayed in the context menu strip when the control is right clicked inside a shape. |
| StandardMenuItems | Returns an array of System.Windows.Forms.ToolStripItem objects that represents those items which are displayed in the context menu strip when the control is right clicked outside a shape. |