TX Text Control .NET for WPF

ContextMenuLocation Property

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

Description

Gets the location in the document for which the context menu will be opened. The context menu items, which will be shown, depend on this location. The property value can be a combination (bitwise or) of the ContextMenuLocation values.

Syntax

public ContextMenuLocation ContextMenuLocation { get; }

Examples

The following example includes the context menu location value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Context Menu Location: {textContextMenuEventArgs.ContextMenuLocation}");
Console.WriteLine("Text Context Menu Event Args is ready for use.");

Limitations

Read only.