TX Text Control .NET for WPF

StandardMenuItems Property

Property|Introduced in 23.0
Namespace
TXTextControl.WPF.Drawing
Package
TXTextControl.TextControl.WPF.SDK as TXDrawing.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

public Control[] StandardMenuItems { get; set; }

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.

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.");
}

Default Values

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

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