TX Text Control .NET for WPF

ShapesContextMenu Class

Class|Introduced in 23.0
Namespace
TXTextControl.WPF.Drawing
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDrawing.WPF.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXDrawing.WPF.dll from the setup.
Inherits
  1. ContextMenu
  2. ShapesContextMenu

Description

The WPF.Drawing.ShapesContextMenu class represents the default context menu of the WPF TXDrawingControl.

Syntax

public class ShapesContextMenu : ContextMenu

Examples

The following example creates a Shapes Context Menu instance and configures its horizontal offset setting for a document workflow.

TXTextControl.WPF.Drawing.ShapesContextMenu shapesContextMenu = new();
shapesContextMenu.HorizontalOffset = 1.0;

Members

Constructors

ConstructorDescription
ShapesContextMenuNot described in the reference. public ShapesContextMenu();

Properties

PropertyDescription
SelectedShapesMenuItemsReturns 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.
StandardMenuItemsReturns 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.