TX Text Control .NET for Windows Forms

ShapesContextMenuStrip 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. ContextMenuStrip
  2. ShapesContextMenuStrip

Description

The Drawing.ShapesContextMenuStrip class represents the default context menu of the Windows Forms TXDrawingControl.

Syntax

public class ShapesContextMenuStrip : ContextMenuStrip

Examples

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();

Members

Properties

PropertyDescription
SelectedShapesMenuItemsReturns 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.
StandardMenuItemsReturns 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.