SelectedShapesMenuItems 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 inside a shape.
Syntax
public ToolStripItem[] SelectedShapesMenuItems { get; set; }Public Property SelectedShapesMenuItems As ToolStripItem()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();shapesContextMenuStrip.SelectedShapesMenuItems = Array.Empty(Of 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)