ShapesContextMenu Class
- Namespace
TXTextControl.WPF. Drawing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXDrawing.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXDrawing.from the setup.WPF. dll
- Inherits
- Context
Menu - Shapes
Context Menu
- Context
Description
The WPF.Drawing.ShapesContextMenu class represents the default context menu of the WPF TXDrawingControl.
Syntax
public class ShapesContextMenu : ContextMenuPublic Class ShapesContextMenu
Inherits ContextMenuExamples
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;Dim shapesContextMenu As New TXTextControl.WPF.Drawing.ShapesContextMenu()
shapesContextMenu.HorizontalOffset = 1.0Members
Constructors
| Constructor | Description |
|---|---|
| ShapesContextMenu | Not described in the reference. public ShapesContextMenu(); |
Properties
| Property | Description |
|---|---|
| SelectedShapesMenuItems | 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. |
| StandardMenuItems | 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. |