# ShapesContextMenu.SelectedShapesMenuItems Property

> Returns an array of System.Windows.Controls.Control objects that represents those items which are displayed in the context menu strip when the control is right clicked inside a shape.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.WPF.Drawing`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDrawing.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF.Drawing > ShapesContextMenu.SelectedShapesMenuItems Property
- **731 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/selectedshapesmenuitems-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/selectedshapesmenuitems-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/selectedshapesmenuitems-property/llms-full.txt

---

### Description

Returns an array of `System.Windows.Controls.Control` objects that represents those items which are displayed in the [context menu strip](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/llms-full.txt) when the control is right clicked inside a [shape](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/llms-full.txt).

### Syntax

```csharp
public Control[] SelectedShapesMenuItems { get; set; }
```

```vbnet
Public Property SelectedShapesMenuItems As Control()
```

### Examples

The following example uses `ShapesContextMenu.SelectedShapesMenuItems` to configure selected shapes menu items as part of the shapes context menu workflow. The configured value is checked before the workflow continues.

```csharp
shapesContextMenu.SelectedShapesMenuItems = new System.Windows.Controls.Control[] { new System.Windows.Controls.Control() };
if (shapesContextMenu.SelectedShapesMenuItems != null)
{
    Console.WriteLine("Shapes Context Menu: Selected Shapes Menu Items is available.");
}
```

```vbnet
shapesContextMenu.SelectedShapesMenuItems = New System.Windows.Controls.Control() { New System.Windows.Controls.Control() }
If shapesContextMenu.SelectedShapesMenuItems IsNot Nothing Then
    Console.WriteLine("Shapes Context Menu: Selected Shapes Menu Items is available.")
End If
```

### Default Values

Index 0: "Cut" (System.Windows.Controls.MenuItem)

Index 1: "Copy" (System.Windows.Controls.MenuItem)

Index 2: "Paste" (System.Windows.Controls.MenuItem)

Index 3: Separator (System.Windows.Controls.Separator)

Index 4: "Bring to Front" (System.Windows.Controls.MenuItem)

Index 5: "Send to Back" (System.Windows.Controls.MenuItem)

Index 6: "Flip" (System.Windows.Controls.MenuItem)

Index 7: Separator (System.Windows.Controls.Separator)

Index 8: "Movable" (System.Windows.Controls.MenuItem)

Index 9: "Sizable" (System.Windows.Controls.MenuItem)

Index 10: "Auto size" (System.Windows.Controls.MenuItem)

Index 11: "Fit to Canvas" (System.Windows.Controls.MenuItem)

Index 12: Separator (System.Windows.Controls.Separator)

Index 13: "Format..." (System.Windows.Controls.MenuItem)

---

## Nearby

- **Previous:** [ShapesContextMenu Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/llms-full.txt)
- **Next:** [ShapesContextMenu.StandardMenuItems Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/standardmenuitems-property/llms-full.txt)
