TX Text Control .NET for WPF

SelectedShapesMenuItems 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 inside a shape.

Syntax

public Control[] SelectedShapesMenuItems { get; set; }

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.

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

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)