StandardMenuItems Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Property StandardMenuItems As ToolStripItem()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();shapesContextMenuStrip.StandardMenuItems = Array.Empty(Of System.Windows.Forms.ToolStripItem)()
shapesContextMenuStrip.Update()Default Values
Index 0: "Paste" (TXTextControl.Drawing.MenuItem)
Index 1: "Select All" (TXTextControl.Drawing.MenuItem)