DS Server

Javascript: TXTextControl.ContextMenuLocation Enumeration

Enumeration|Introduced in 31.0

Description

Determines the location in the document where a context menu will be shown.

Members

MemberDescription
TextSelectionThe menu context is a text selection.
TextInputPositionThe menu context is the text input position.
HeaderThe menu context is the top page margin which contains a header.
NoHeaderThe menu context is the top page margin which contains no header.
NoFooterThe menu context is the bottom page margin which contains no footer.
PageMarginThe menu context is the top or the bottom page margin.
PageNumberFieldThe menu context is a page number field.
SelectedFrameThe menu context is a selected frame (text frame, image, chart or barcode).
TableThe menu context is a text selection or a text input position in a table.
TextFieldThe menu context is a text selection or a text input position in a text field.
MisspelledWordThe menu context is a text selection or a text input position in a misspelled word.
TableOfContentsThe menu context is a text selection or a text input position in a table of contents.
TrackedChangeThe menu context is a text selection or a text input position in a tracked change.
CommentThe menu context is a text selection or a text input position in a comment.

Examples

The following example uses TXTextControl.ContextMenuLocation.TextSelection (the menu context is a text selection.) in a document-editing workflow.

const value = TXTextControl.ContextMenuLocation.TextSelection;
console.log("The menu context is a text selection.", value);