TX Text Control .NET for Windows Forms

SelectedShapesMenuItems Property

Property|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WinForms.SDK as TXDrawing.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

public ToolStripItem[] SelectedShapesMenuItems { get; set; }

Examples

The following example uses ShapesContextMenuStrip.SelectedShapesMenuItems to configure selected shapes menu items as part of the shapes context menu strip workflow. The change is then applied to the active document or user interface.

shapesContextMenuStrip.SelectedShapesMenuItems = Array.Empty<System.Windows.Forms.ToolStripItem>();
shapesContextMenuStrip.Update();

Default Values

Index 0: "Cut" (TXTextControl.Drawing.MenuItem)

Index 1: "Copy" (TXTextControl.Drawing.MenuItem)

Index 2: "Paste" (TXTextControl.Drawing.MenuItem)

Index 3: Separator (System.Windows.Forms.ToolStripSeparator)

Index 4: "Bring to Front" (TXTextControl.Drawing.MenuItem)

Index 5: "Send to Back" (TXTextControl.Drawing.MenuItem)

Index 6: "Flip" (TXTextControl.Drawing.MenuItem)

Index 7: Separator (System.Windows.Forms.ToolStripSeparator)

Index 8: "Movable" (TXTextControl.Drawing.MenuItem)

Index 9: "Sizable" (TXTextControl.Drawing.MenuItem)

Index 10: "Auto size" (TXTextControl.Drawing.MenuItem)

Index 11: "Fit to Canvas" (TXTextControl.Drawing.MenuItem)

Index 12: Separator (System.Windows.Forms.ToolStripSeparator)

Index 13: "Format..." (TXTextControl.Drawing.MenuItem)