# ShapesContextMenuStrip Class

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDrawing.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.Windows.Forms.dll` from the setup
- **Inherits:** `System.Windows.Forms.ContextMenuStrip`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Drawing > ShapesContextMenuStrip Class
- **508 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapescontextmenustrip/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapescontextmenustrip/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapescontextmenustrip/llms-full.txt

---

### Description

The Drawing.ShapesContextMenuStrip class represents the default context menu of the Windows Forms [TXDrawingControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/llms-full.txt).

### Syntax

```csharp
public class ShapesContextMenuStrip : ContextMenuStrip
```

```vbnet
Public Class ShapesContextMenuStrip
    Inherits 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.

```csharp
Console.WriteLine($"Selected Shapes Menu Items: {shapesContextMenuStrip.SelectedShapesMenuItems}");
shapesContextMenuStrip.Update();
```

```vbnet
Console.WriteLine($"Selected Shapes Menu Items: {shapesContextMenuStrip.SelectedShapesMenuItems}")
shapesContextMenuStrip.Update()
```

---

## In This Section

- [ShapesContextMenuStrip.SelectedShapesMenuItems Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapescontextmenustrip/selectedshapesmenuitems-property/llms-full.txt): 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.
- [ShapesContextMenuStrip.StandardMenuItems Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapescontextmenustrip/standardmenuitems-property/llms-full.txt): 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.

---

## Nearby

- **Previous:** [ShapeEventArgs.Shape Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapeeventargs/shape-property/llms-full.txt)
- **Next:** [ShapesContextMenuStrip.SelectedShapesMenuItems Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapescontextmenustrip/selectedshapesmenuitems-property/llms-full.txt)
