# ShapesContextMenu.StandardMenuItems 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 outside 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.StandardMenuItems Property
- **570 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/standardmenuitems-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/standardmenuitems-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/shapescontextmenu/standardmenuitems-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 outside a [shape](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/llms-full.txt).

### Syntax

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

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

### Examples

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

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

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

### Default Values

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

Index 1: "Select All" (System.Windows.Controls.MenuItem)

---

## Nearby

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