StandardMenuItems Property
- Namespace
TXTextControl.WPF. Drawing
- Package
TXTextControl.asTextControl. WPF. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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; }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.
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.");
}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 IfDefault Values
Index 0: "Paste" (System.Windows.Controls.MenuItem)
Index 1: "Select All" (System.Windows.Controls.MenuItem)