TX Text Control .NET for Windows Forms

StandardMenuItems 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 outside a shape.

Syntax

public ToolStripItem[] StandardMenuItems { get; set; }

Examples

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

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

Default Values

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

Index 1: "Select All" (TXTextControl.Drawing.MenuItem)