TX Text Control .NET Server

ContextMenuLocation Enumeration

Enumeration|Introduced in 19.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Determines the location in the document where a context menu will be shown. The enumeration contains the following values:

Syntax

[Flags]
public enum ContextMenuLocation

Members

MemberValueDescription
TextSelection1The menu context is a text selection.
TextInputPosition2The menu context is the text input position.
Header4The menu context is the top page margin which contains a header.
NoHeader8The menu context is the top page margin which contains no header.
NoFooter32The menu context is the bottom page margin which contains no footer.
PageMargin64The menu context is the top or the bottom page margin.
PageNumberField128The menu context is a PageNumberField.
SelectedFrame256The menu context is a selected frame (text frame, image, chart or barcode).
Table512The menu context is a text selection or a text input position in a Table.
MisspelledWord2048The menu context is a MisspelledWord.
TableOfContents4096The menu context is a TableOfContents.
TrackedChange8192The menu context is a TrackedChange.
Comment16384The menu context is a CommentedText.
FormField32768The menu context is a FormField.
Footnote65536The menu context is a Footnote reference mark.
TextField1024Not described in the reference.

Examples

The following example selects the Text Selection value from the Context Menu Location enumeration and uses it as a documented workflow choice.

ContextMenuLocation value = ContextMenuLocation.TextSelection;
Console.WriteLine($"Using Context Menu Location: {value}");

See Also

TextContextMenuEventArgs class, TextControl.TextContextMenuOpening Event, WPF.TextControl.TextContextMenuOpening Event.